[llvm-branch-commits] [lld] [lld][MachO] Make -objc_category_merging imply --check-category-conflicts (PR #241977)

Jez Ng via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Nov 12 15:51:20 PST 2026


https://github.com/int3 commented:

from the bot:

> ld-prime never warns about category conflicts. The binary doesn’t even contain the “overrides method” / “conflicts with same method” strings.
In ld-classic, the warnings are a side effect of merging. They are printed inside the MethodListAtom constructor in src/ld/passes/objc.cpp:2383-2390, while it builds the merged method list. When merging is off, no categories are passed in, so nothing is checked. In ld-classic, “merging implies checking” is exactly how it works.

so I think you are right about the original intention (as far as I can remember anyway), but idk if we should be turning it on by default if we want behavior parity with Apple's current linker

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


More information about the llvm-branch-commits mailing list