This is an archive of the discontinued LLVM Phabricator instance.

[clang][darwin] Add support for --emit-static-lib
ClosedPublic

Authored by keith on Sep 8 2021, 1:50 PM.

Details

Summary

This uses darwin's default libtool since llvm-ar isn't normally
available.

Diff Detail

Event Timeline

keith requested review of this revision.Sep 8 2021, 1:50 PM
keith created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2021, 1:50 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Since you all were involved in adding this feature in the beginning I'd appreciate a review!

yaxunl added inline comments.Sep 13 2021, 7:19 AM
clang/lib/Driver/ToolChains/Darwin.cpp
748

libtool ?

keith updated this revision to Diff 372286.Sep 13 2021, 9:58 AM
keith marked an inline comment as done.

Fix formatting and comment

keith updated this revision to Diff 372287.Sep 13 2021, 10:01 AM

Revert unrelated formatting fixes

yaxunl accepted this revision.Sep 13 2021, 10:06 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Sep 13 2021, 10:06 AM
This revision was automatically updated to reflect the committed changes.