This ld64 flag is enabled by default via this logic
ld64 does not have a way to disable this either. Given this we can
safely ignore this flag instead of warning about it.
Differential D113071
[lld-macho] Ignore -arch_errors_fatal since it's enabled by default keith on Nov 2 2021, 5:07 PM. Authored by
Details This ld64 flag is enabled by default via this logic ld64 does not have a way to disable this either. Given this we can
Diff Detail
Event TimelineComment Actions
I'm confused; doesn't ld64 *not* fatal by default when encountering this error? (I'm actually working with a local build right now that has this arch mismatch issue, and I'd patched my local LLD to work around it -- just hadn't gotten around to upstreaming the change) Comment Actions Correct by default ld64 does not fatal when it finds an input with an arch mismatch, it just warns. AFAIK this option in ld64 was pretty recent. Comment Actions Right, so ld64 doesn't have a way to disable this fatal because it's already disabled... But yeah I would prefer that we hewed to ld64's behavior here so that LLD is easier to use as a drop-in replacement Comment Actions Exactly. I was just saying that we could safely ignore this (if we were ok to have the behavior difference) that we wouldn't need to publicize this flag at all.
Ok so you think we should swap the existing error for a warning, and enable this flag to act as it does today? FWIW I think the risk of this being a blocker for adoption is pretty low, but I totally take your point. Comment Actions
Yup!
Well as mentioned, one of the internal builds I'm working with has this issue already :/ I could probably fix it but yeah it's a pain |