[lld] 5c26874 - [lld-macho][nfc] Use %lld-watchos substitution in bind-opcodes.s

Jez Ng via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 16:00:51 PST 2022


Author: Jez Ng
Date: 2022-03-03T19:00:28-05:00
New Revision: 5c268743da5818bc279b27648e9fccc37b9bb7dd

URL: https://github.com/llvm/llvm-project/commit/5c268743da5818bc279b27648e9fccc37b9bb7dd
DIFF: https://github.com/llvm/llvm-project/commit/5c268743da5818bc279b27648e9fccc37b9bb7dd.diff

LOG: [lld-macho][nfc] Use %lld-watchos substitution in bind-opcodes.s

Previously, we were using a syslibroot that pointed to macos while
linking against arch arm64_32, which didn't really make sense. It isn't
currently an issue, but will be if we add the `-lSystem` as part of
dealing with https://github.com/llvm/llvm-project/issues/54184.

Added: 
    

Modified: 
    lld/test/MachO/bind-opcodes.s

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/bind-opcodes.s b/lld/test/MachO/bind-opcodes.s
index 67d7e26bf9f01..cc798b3c41caa 100644
--- a/lld/test/MachO/bind-opcodes.s
+++ b/lld/test/MachO/bind-opcodes.s
@@ -71,8 +71,8 @@
 
 # RUN: llvm-mc -filetype=obj -triple=arm64_32-apple-darwin %t/foo.s -o %t/foo.o
 # RUN: llvm-mc -filetype=obj -triple=arm64_32-apple-darwin --defsym PTR32=0 %t/test.s -o %t/test.o
-# RUN: %lld -arch arm64_32 -O2 -dylib %t/foo.o -o %t/libfoo.dylib
-# RUN: %lld -arch arm64_32 -O2 -dylib %t/test.o %t/libfoo.dylib -o %t/libtest-arm64_32.dylib
+# RUN: %lld-watchos -O2 -dylib %t/foo.o -o %t/libfoo.dylib
+# RUN: %lld-watchos -O2 -dylib %t/test.o %t/libfoo.dylib -o %t/libtest-arm64_32.dylib
 
 ## Test (32-bit):
 ## 1/ We emit exactly one BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM per symbol.


        


More information about the llvm-commits mailing list