This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Always use --as-needed with libunwind
ClosedPublic

Authored by phosek on Jun 29 2022, 11:14 AM.

Details

Summary

With libgcc, we follow the behavior of GCC for backwards compatibility,
only using --as-needed in the non-C++ mode.

With libunwind, there are no backward compatibility requirements so we
can always use --as-needed on all supported platforms.

Diff Detail

Event Timeline

phosek created this revision.Jun 29 2022, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 11:14 AM
phosek requested review of this revision.Jun 29 2022, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 11:14 AM
phosek edited the summary of this revision. (Show Details)Jun 29 2022, 11:17 AM
saugustine accepted this revision.Jun 29 2022, 11:18 AM
This revision is now accepted and ready to land.Jun 29 2022, 11:18 AM
This revision was automatically updated to reflect the committed changes.