diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-10-03 22:18:49 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-10-03 22:18:49 +0000 |
| commit | fa9df7af07fa888feec91b06320b9091d4a3fb52 (patch) | |
| tree | 281237ddc6ca3b837892d65713bf4510bcca2a34 /clang/test/Modules/dependency-gen.m | |
| parent | 3c3b48805f1839539c13af3021c9bed5048a8956 (diff) | |
| download | bcm5719-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/Modules/dependency-gen.m')
| -rw-r--r-- | clang/test/Modules/dependency-gen.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Modules/dependency-gen.m b/clang/test/Modules/dependency-gen.m index dec83848f06..d3d66bfaab2 100644 --- a/clang/test/Modules/dependency-gen.m +++ b/clang/test/Modules/dependency-gen.m @@ -1,7 +1,7 @@ // RUN: rm -rf %t-mcp // RUN: mkdir -p %t-mcp -// RUN: %clang_cc1 -x objective-c -isysroot %S/Inputs/System -triple x86_64-apple-darwin10 -dependency-file %t.d.1 -MT %s.o -I %S/Inputs -fsyntax-only -fmodules -fmodules-cache-path=%t-mcp %s +// RUN: %clang_cc1 -x objective-c -isystem %S/Inputs/System/usr/include -dependency-file %t.d.1 -MT %s.o -I %S/Inputs -fsyntax-only -fmodules -fmodules-cache-path=%t-mcp %s // RUN: FileCheck %s < %t.d.1 // CHECK: dependency-gen.m // CHECK: Inputs{{.}}diamond_top.h @@ -10,7 +10,7 @@ // CHECK-NOT: stdint.h -// RUN: %clang_cc1 -x objective-c -isysroot %S/Inputs/System -triple x86_64-apple-darwin10 -dependency-file %t.d.2 -MT %s.o -I %S/Inputs -sys-header-deps -fsyntax-only -fmodules -fmodules-cache-path=%t-mcp %s +// RUN: %clang_cc1 -x objective-c -isystem %S/Inputs/System/usr/include -dependency-file %t.d.2 -MT %s.o -I %S/Inputs -sys-header-deps -fsyntax-only -fmodules -fmodules-cache-path=%t-mcp %s // RUN: FileCheck %s -check-prefix=CHECK-SYS < %t.d.2 // CHECK-SYS: dependency-gen.m // CHECK-SYS: Inputs{{.}}diamond_top.h |

