[PATCH] D115604: [Support] Expand `<@>` as the base directory in response files.
Jack Andersen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 12 13:42:55 PST 2021
jackoalan created this revision.
jackoalan added reviewers: kadircet, Bigcheese.
Herald added subscribers: dexonsmith, hiraditya.
jackoalan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Extends response file expansion to recognize `<@>` and expand to the response
file's directory. This makes it much easier to author clang config files rooted
in portable, potentially not-installed SDK directories.
A typical use case may be something like the following:
# sample_sdk.cfg
--target=sample
-isystem <@>/include
-L <@>/lib
-T <@>/ldscripts/link.ld
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115604
Files:
llvm/lib/Support/CommandLine.cpp
llvm/unittests/Support/CommandLineTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115604.393774.patch
Type: text/x-patch
Size: 6861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211212/7adc1e41/attachment.bin>
More information about the llvm-commits
mailing list