brintos

brintos / llvm-project-archived public Read only

0
0
Text · 880 B · 3080f76 Raw
19 lines · c
1// Check that --sysroot= also applies to header search paths.2// RUN: %clang -target i386-unk-unk --sysroot=/FOO -### -E %s 2> %t13// RUN: FileCheck --check-prefix=CHECK-SYSROOTEQ < %t1 %s4// CHECK-SYSROOTEQ: "-cc1"{{.*}} "-isysroot" "{{[^"]*}}/FOO"5 6// Apple Darwin uses -isysroot as the syslib root, too.7// RUN: touch %t2.o8// RUN: %clang -target i386-apple-darwin10 \9// RUN:   -isysroot /FOO -### %t2.o 2> %t210// RUN: FileCheck --check-prefix=CHECK-APPLE-ISYSROOT < %t2 %s11// CHECK-APPLE-ISYSROOT: "-arch" "i386"{{.*}} "-syslibroot" "{{[^"]*}}/FOO"12 13// Check that honor --sysroot= over -isysroot, for Apple Darwin.14// RUN: touch %t3.o15// RUN: %clang -target i386-apple-darwin10 \16// RUN:   -isysroot /FOO --sysroot=/BAR -### %t3.o 2> %t317// RUN: FileCheck --check-prefix=CHECK-APPLE-SYSROOT < %t3 %s18// CHECK-APPLE-SYSROOT: "-arch" "i386"{{.*}} "-syslibroot" "{{[^"]*}}/BAR"19