[lld] [llvm] [lld-macho] Implement ObjC category merging (-objc_category_merging) (PR #82928)

Vincent Lee via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 02:29:29 PDT 2024


================
@@ -0,0 +1,764 @@
+# REQUIRES: aarch64
+# RUN: rm -rf %t; split-file %s %t && cd %t
+
+## Create a dylib to link against(a64_file1.dylib) and merge categories in the main binary (file2_merge_a64.exe)
+# RUN: llvm-mc -filetype=obj -triple=arm64-ios-simulator -o a64_file1.o a64_file1.s
+# RUN: ld64.lld a64_file1.o -o a64_file1.dylib -dylib -arch arm64 -platform_version ios-simulator 14.0 15.0
----------------
thevinster wrote:

Common practice is to use`%lld` instead of `ld64.lld`. This way making changes to the base flags can affect all tests instead of needing to go into each test file to update. Flags can still be overridden if needed. 

Applies to every single line that directly uses `ld64.lld` 

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


More information about the llvm-commits mailing list