[llvm-branch-commits] [lld] [lld][MachO] Fix ObjC stubs from autolinked archives (PR #219743)

Ellis Hoag via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Oct 7 15:49:23 PDT 2026


================
@@ -0,0 +1,35 @@
+# REQUIRES: aarch64
+
+# RUN: rm -rf %t && split-file %s %t
+# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %t/main.s \
+# RUN:   -o %t/main.o
+# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %t/dep.s \
+# RUN:   -o %t/dep.o
+# RUN: llvm-ar rcs %t/libdep.a %t/dep.o
+# RUN: %lld -arch arm64 -lSystem -o %t/out %t/main.o -L%t \
----------------
ellishg wrote:

```suggestion
# RUN: %lld -arch arm64 -o %t/out %t/main.o -L%t \
```

I believe `-lSystem` is already in `%lld`

https://github.com/llvm/llvm-project/pull/219743


More information about the llvm-branch-commits mailing list