`-no_warn_duplicate_libraries` flag isn't recognized by ldd when overriding the linker
When using lld as the linker using rules_apple_linker, linking fails with the following error:
unknown argument: -no_warn_duplicate_libraries
Happy to provide a patch wherever feels best, even if this means submitting a patch to llvm
quick workaround is to pass --features=-no_warn_duplicate_libraries
here's the upstream lld flag: https://github.com/llvm/llvm-project/pull/86303
note that as of xcode 15 the perf differences with lld decreased a lot, if that was the primary reason you were using it you might want to re-test on your project
Just seeing the reply, sorry about that... Closing the issue since the llvm PR is merged.
As for why we use lld, I haven't had time to dig properly why exactly but that's the only way for us to get DWARF info from rust static libraries in the dSYM for debug builds and therefore have Rust breakpoints working in Xcode (Works fine for release builds but not for debug builds for some reason...)