[lld] 0a5228a - test: add library search path to repair the test

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 16 17:06:42 PDT 2020


Author: Saleem Abdulrasool
Date: 2020-06-16T17:06:21-07:00
New Revision: 0a5228a02c32cb5b10d43cb154d6d0abaf360ba7

URL: https://github.com/llvm/llvm-project/commit/0a5228a02c32cb5b10d43cb154d6d0abaf360ba7
DIFF: https://github.com/llvm/llvm-project/commit/0a5228a02c32cb5b10d43cb154d6d0abaf360ba7.diff

LOG: test: add library search path to repair the test

Update the test to no longer rely on the testing workaround in the
linker and use the external libSystem stub.

Added: 
    

Modified: 
    lld/test/MachO/dylink-lazy.s

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/dylink-lazy.s b/lld/test/MachO/dylink-lazy.s
index a77a23be67f0..1ed509c14f50 100644
--- a/lld/test/MachO/dylink-lazy.s
+++ b/lld/test/MachO/dylink-lazy.s
@@ -4,13 +4,16 @@
 # RUN:   -o %t/libhello.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %p/Inputs/libgoodbye.s \
 # RUN:   -o %t/libgoodbye.o
-# RUN: lld -flavor darwinnew -arch x86_64 -dylib -install_name \
-# RUN:   @executable_path/libhello.dylib %t/libhello.o -o %t/libhello.dylib
-# RUN: lld -flavor darwinnew -arch x86_64 -dylib -install_name \
-# RUN:   @executable_path/libgoodbye.dylib %t/libgoodbye.o -o %t/libgoodbye.dylib
+# RUN: lld -flavor darwinnew -arch x86_64 -dylib -L%S/Inputs/MacOSX.sdk/usr/lib \
+# RUN:   -install_name @executable_path/libhello.dylib %t/libhello.o \
+# RUN:   -o %t/libhello.dylib
+# RUN: lld -flavor darwinnew -arch x86_64 -dylib -L%S/Inputs/MacOSX.sdk/usr/lib \
+# RUN:   -install_name @executable_path/libgoodbye.dylib %t/libgoodbye.o \
+# RUN:   -o %t/libgoodbye.dylib
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t/dylink-lazy.o
-# RUN: lld -flavor darwinnew -arch x86_64 -o %t/dylink-lazy -L%t -lhello -lgoodbye %t/dylink-lazy.o
+# RUN: lld -flavor darwinnew -arch x86_64 -o %t/dylink-lazy \
+# RUN:   -L%S/Inputs/MacOSX.sdk/usr/lib \-L%t -lhello -lgoodbye %t/dylink-lazy.o
 
 ## When looking at the __stubs section alone, we are unable to easily tell which
 ## symbol each entry points to. So we call objdump twice in order to get the


        


More information about the llvm-commits mailing list