[lld] 0885afb - [lld][test] Fix darwin REQUIRES (NFC)

Keith Smiley via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 7 12:37:52 PDT 2021


Author: Keith Smiley
Date: 2021-10-07T12:37:37-07:00
New Revision: 0885afb8b0584becc0e315217d37776cb0518115

URL: https://github.com/llvm/llvm-project/commit/0885afb8b0584becc0e315217d37776cb0518115
DIFF: https://github.com/llvm/llvm-project/commit/0885afb8b0584becc0e315217d37776cb0518115.diff

LOG: [lld][test] Fix darwin REQUIRES (NFC)

Some subprojects like compiler-rt define the `darwin` feature in their
lit config, but lld does not do that, so we need to use the global
system-darwin here instead. This test seems to have drifted from the
actual behavior so I also had to add `/usr/local/lib` here to make it
pass.

Differential Revision: https://reviews.llvm.org/D111268

Added: 
    

Modified: 
    lld/test/MachO/search-paths-darwin.test

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/search-paths-darwin.test b/lld/test/MachO/search-paths-darwin.test
index 2a37f9c015690..a21156c6ed69b 100644
--- a/lld/test/MachO/search-paths-darwin.test
+++ b/lld/test/MachO/search-paths-darwin.test
@@ -1,5 +1,5 @@
 REQUIRES: x86
-REQUIRES: darwin
+REQUIRES: system-darwin
 
 RUN: mkdir -p %t1 %t2
 
@@ -7,6 +7,7 @@ RUN: not ld64.lld -arch x86_64 -v -L%t1 -F%t2 2>&1 | FileCheck -DLDIR=%t1 -DFDIR
 CHECK:      Library search paths:
 CHECK-NEXT: [[LDIR]]
 CHECK-NEXT: /usr/lib
+CHECK-NEXT: /usr/local/lib
 CHECK-NEXT: Framework search paths:
 CHECK-NEXT: [[FDIR]]
 CHECK-NEXT: /Library/Frameworks


        


More information about the llvm-commits mailing list