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
23 lines
894 B
Objective-C
23 lines
894 B
Objective-C
// RUN: rm -rf %t-mcp
|
|
// RUN: mkdir -p %t-mcp
|
|
|
|
// 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
|
|
// CHECK: Inputs{{.}}module.map
|
|
// CHECK-NOT: usr{{.}}include{{.}}module.map
|
|
// CHECK-NOT: stdint.h
|
|
|
|
|
|
// 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
|
|
// CHECK-SYS: Inputs{{.}}module.map
|
|
// CHECK-SYS: usr{{.}}include{{.}}module.map
|
|
// CHECK-SYS: stdint.h
|
|
|
|
#import "diamond_top.h"
|
|
#import "stdint.h" // inside sysroot
|