This provides a workaround for a small difference in ld64 behavior where
ld64 ignores invalid LC_LINKER_OPTIONS unless the link fails. Instead of
fully adopting that behavior, this provides an escape hatch by allowing
users to specify --ignore-auto-link-option passing the invalid library
or framework name
Details
- Reviewers
int3 - Group Reviewers
Restricted Project - Commits
- rG47f9722c32be: [lld-macho] Add --ignore-auto-link-option
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
hmm this places the burden on the end user to manually put together the list of frameworks to be ignored. Why not have a flag that turns all LC_LINKER_OPTION load failures into warnings?
I don't feel super strongly about this either way though. @thakis, do you have any opinions?
Why not have a flag that turns all LC_LINKER_OPTION load failures into warnings
I think the alternative to this is that we mirror the ld64 behavior somehow, because changing these to warnings would just end up with you having unsolvable warnings instead
I think the alternative to this is that we mirror the ld64 behavior somehow, because changing these to warnings would just end up with you having unsolvable warnings instead
Yeah fair, we shouldn't make it too difficult for people to turn on -fatal_warnings
can we have a comment explaining the motivation behind this option?