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
Showing
- test/Modules/Werror-Wsystem-headers.m 3 additions, 3 deletionstest/Modules/Werror-Wsystem-headers.m
- test/Modules/dependency-gen.m 2 additions, 2 deletionstest/Modules/dependency-gen.m
- test/Modules/module_file_info.m 3 additions, 3 deletionstest/Modules/module_file_info.m
- test/Modules/validate-system-headers.m 6 additions, 6 deletionstest/Modules/validate-system-headers.m
- test/PCH/verify_pch.m 7 additions, 7 deletionstest/PCH/verify_pch.m
- test/Preprocessor/headermap-rel2.c 2 additions, 2 deletionstest/Preprocessor/headermap-rel2.c
- test/lit.cfg 2 additions, 1 deletiontest/lit.cfg
Loading
Please register or sign in to comment