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"


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to