Skip to content

Commit e65721c

Browse files
committed
[Driver][test] Fix dragonfly.c after #69095
If DEFAULT_SYSROOT is not empty, the /usr/lib/gcc80 path may have leading path components `getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/gcc80"))`
1 parent 3b589fe commit e65721c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/test/Driver/dragonfly.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %clang --target=x86_64-pc-dragonfly -### %s 2> %t.log
2-
// RUN: FileCheck -input-file %t.log %s
1+
// RUN: %clang --target=x86_64-pc-dragonfly --sysroot= -### %s 2>&1 | FileCheck %s
32

43
// CHECK: "-cc1" "-triple" "x86_64-pc-dragonfly"
54
// CHECK: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/usr/libexec/ld-elf.so.{{.*}}" "--hash-style=gnu" "--enable-new-dtags" "-o" "a.out" "{{.*}}crt1.o" "{{.*}}crti.o" "{{.*}}crtbegin.o" "-L{{.*}}/../lib" "-L/usr/lib" "-L/usr/lib/gcc80" "{{.*}}.o" "-rpath" "{{.*}}gcc80{{.*}}" "-lc" "-lgcc" "{{.*}}crtend.o" "{{.*}}crtn.o"

0 commit comments

Comments
 (0)