This is an archive of the discontinued LLVM Phabricator instance.

[AIX] Remove --as-needed passing into aix linker
ClosedPublic

Authored by jasonliu on Jun 15 2021, 11:40 AM.

Details

Summary

AIX does not support --as-needed linker options. Remove that option from aix linker when -lunwind is needed.
For unwinder library, nothing special is needed because by default aix linker has the as-needed effect for library that's an archive (which is the case for libunwind on AIX).

Diff Detail

Event Timeline

jasonliu requested review of this revision.Jun 15 2021, 11:40 AM
jasonliu created this revision.
daltenty accepted this revision.Jun 16 2021, 12:11 PM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 16 2021, 12:11 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2021, 10:17 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript