Just matter of enabling the config option.
(Also changed the platform of the input test file to macOS, since that's
the default that we specify in the %lld substitution. The conflict was
causing errors when linking with LTO.)
Paths
| Differential D127600
[lld-macho] Make `--icf=safe` work with LTO ClosedPublic Authored by int3 on Jun 12 2022, 7:31 AM.
Details
Summary Just matter of enabling the config option. (Also changed the platform of the input test file to macOS, since that's
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 12 2022, 7:31 AM This revision is now accepted and ready to land.Jun 12 2022, 10:10 AM Closed by commit rGd378268ead93: [lld-macho] Make `--icf=safe` work with LTO (authored by int3). · Explain WhyJun 12 2022, 2:33 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 436253 lld/MachO/LTO.cpp
lld/test/MachO/icf-safe.ll
|
question for @alexbdv: why the use of -O3 and -enable-machine-outliner=never here?