]> granicus.if.org Git - clang/commit
test: Disable standard system includes in %clang_cc1
authorJustin Bogner <mail@justinbogner.com>
Fri, 3 Oct 2014 22:18:49 +0000 (22:18 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 3 Oct 2014 22:18:49 +0000 (22:18 +0000)
commit636d9eb9ebf7daa3ca38fad8a078b7861e93bcd3
treef1ce2aa6a31412df84b6a75161b0d2cce2cdc345
parentb7a8446e5e936b7d48e75a2b1f915bb89bbe5fb5
test: Disable standard system includes in %clang_cc1

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219030 91177308-0d34-0410-b5e6-96231b3b80d8
test/Modules/Werror-Wsystem-headers.m
test/Modules/dependency-gen.m
test/Modules/module_file_info.m
test/Modules/validate-system-headers.m
test/PCH/verify_pch.m
test/Preprocessor/headermap-rel2.c
test/lit.cfg