[PATCH] D117250: [lld-macho] Mention string literal deduplication as a difference from ld64

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 18 20:19:37 PST 2022


int3 added a comment.

> the chances of them diving deep enough to understand why they're not are slim if they think it introduces too much risk

How about introducing a new `--ld64-compat` flag that developers can use if they want to adopt LLD with minimal differences from ld64? I agree that it's not reasonable to expect the average end-user to understand the linking process in detail just to adopt LLD, but I think presenting them a higher-level flag that maximizes LD64 compatibility (and putting it front-and-center in our docs) makes things more approachable. Right now, that flag would simply alias to `--deduplicate-literals`, but we could expand it to other behaviors in the future.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117250/new/

https://reviews.llvm.org/D117250



More information about the llvm-commits mailing list