[PATCH] D73500: [driver] Add a -builtininc flag that lets Darwin driver include Clang builtin headers even with -nostdinc
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 28 19:34:43 PST 2020
MaskRay added a comment.
In D73500#1846036 <https://reviews.llvm.org/D73500#1846036>, @arphaman wrote:
> In D73500#1846003 <https://reviews.llvm.org/D73500#1846003>, @MaskRay wrote:
>
> > Should they use -nostdlibinc instead?
>
>
> Unfortunately they can't control the flag in this specific case, only add flags for specific files.
To make sure I understand it correctly.
There is a project using `-nostdinc`. It still accesses intrinsics headers, so `-ibuiltininc` is added to make it work. The new option requires a new release of clang. Is it really more convenient adding a new option than teaching the project to use `-nostdlibinc` instead of `-nostdinc`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73500/new/
https://reviews.llvm.org/D73500
More information about the cfe-commits
mailing list