[PATCH] test: Disable standard system includes in %clang_cc1
Justin Bogner
mail at justinbogner.com
Fri Oct 3 15:13:28 PDT 2014
This adds -nostdsysteminc to the %clang_cc1 expansion, which should
make it harder to accidentally write tests that depend on headers in
/usr/include. It also updates a few tests that use -isysroot <x> and a
darwin triple to omit the triple and use -isystem <x>/usr/include
instead, making them a little bit more general.
Incidentally, this fixes a test failure I'm seeing on darwin in
Modules/stddef.c, that happens because my system finds a stddef.h in
/usr/include.
Okay to commit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-no-std-system-inc.patch
Type: text/x-patch
Size: 11108 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141003/df852dce/attachment.bin>
More information about the cfe-commits
mailing list