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

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 06:34:54 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
----------------
alx32 wrote:

My tests (assembly, matched patterns) are for ios-simulator. `%lld` is meant to be used for MacOS. I can't seem to be able to overwrite `-target_platform` if using `%lld` leading to test errors. 

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


More information about the llvm-commits mailing list