Skip to content

Commit e783d5d

Browse files
authored
[Driver] Fix the sysroot.c test properly (#94276)
A DEFAULT_SYSROOT interfered with the test, apparently. See #94055.
1 parent c759334 commit e783d5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/test/Driver/sysroot.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
// Fails on ARM/AArch64-hosted Windows, can't tell why.
2-
// UNSUPPORTED: system-windows
3-
41
// Check that --sysroot= also applies to header search paths.
52
// RUN: %clang -target i386-unk-unk --sysroot=/FOO -### -E %s 2> %t1
63
// RUN: FileCheck --check-prefix=CHECK-SYSROOTEQ < %t1 %s
74
// CHECK-SYSROOTEQ: "-cc1"{{.*}} "-isysroot" "{{[^"]*}}/FOO"
85

96
// Apple Darwin uses -isysroot as the syslib root, too.
7+
// We pass --sysroot="" to defeat any -DDEFAULT_SYSROOT parameter.
108
// RUN: touch %t2.o
119
// RUN: %clang -target i386-apple-darwin10 \
12-
// RUN: -isysroot /FOO -### %t2.o 2> %t2
10+
// RUN: -isysroot /FOO --sysroot="" -### %t2.o 2> %t2
1311
// RUN: FileCheck --check-prefix=CHECK-APPLE-ISYSROOT < %t2 %s
1412
// CHECK-APPLE-ISYSROOT: "-arch" "i386"{{.*}} "-syslibroot" "{{[^"]*}}/FOO"
1513

0 commit comments

Comments
 (0)