summaryrefslogtreecommitdiffstats
path: root/clang/test/lit.cfg
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-10-03 22:18:49 +0000
committerJustin Bogner <mail@justinbogner.com>2014-10-03 22:18:49 +0000
commitfa9df7af07fa888feec91b06320b9091d4a3fb52 (patch)
tree281237ddc6ca3b837892d65713bf4510bcca2a34 /clang/test/lit.cfg
parent3c3b48805f1839539c13af3021c9bed5048a8956 (diff)
downloadbcm5719-llvm-fa9df7af07fa888feec91b06320b9091d4a3fb52.tar.gz
bcm5719-llvm-fa9df7af07fa888feec91b06320b9091d4a3fb52.zip
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. llvm-svn: 219030
Diffstat (limited to 'clang/test/lit.cfg')
-rw-r--r--clang/test/lit.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg
index f0be64df7e2..cf03129d92d 100644
--- a/clang/test/lit.cfg
+++ b/clang/test/lit.cfg
@@ -259,7 +259,8 @@ def makeMSABITriple(triple):
# -win32 is not supported for non-x86 targets; use a default.
return 'i686-pc-win32'
-config.substitutions.append( ('%clang_cc1', '%s -cc1 -internal-isystem %s'
+config.substitutions.append( ('%clang_cc1',
+ '%s -cc1 -internal-isystem %s -nostdsysteminc'
% (config.clang,
getClangBuiltinIncludeDir(config.clang))) )
config.substitutions.append( ('%clang_cpp', ' ' + config.clang +
OpenPOWER on IntegriCloud