[clang] e65721c - [Driver][test] Fix dragonfly.c after #69095
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 2 11:29:05 PDT 2023
Author: Fangrui Song
Date: 2023-11-02T11:28:56-07:00
New Revision: e65721c3a1ee3ee4aa43499882f6d71dc9368daf
URL: https://github.com/llvm/llvm-project/commit/e65721c3a1ee3ee4aa43499882f6d71dc9368daf
DIFF: https://github.com/llvm/llvm-project/commit/e65721c3a1ee3ee4aa43499882f6d71dc9368daf.diff
LOG: [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"))`
Added:
Modified:
clang/test/Driver/dragonfly.c
Removed:
################################################################################
diff --git a/clang/test/Driver/dragonfly.c b/clang/test/Driver/dragonfly.c
index 11d730f55bd9d69..931f23f6f57b5fc 100644
--- a/clang/test/Driver/dragonfly.c
+++ b/clang/test/Driver/dragonfly.c
@@ -1,5 +1,4 @@
-// RUN: %clang --target=x86_64-pc-dragonfly -### %s 2> %t.log
-// RUN: FileCheck -input-file %t.log %s
+// RUN: %clang --target=x86_64-pc-dragonfly --sysroot= -### %s 2>&1 | FileCheck %s
// CHECK: "-cc1" "-triple" "x86_64-pc-dragonfly"
// 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"
More information about the cfe-commits
mailing list