This is an archive of the discontinued LLVM Phabricator instance.

[clang/darwin] Pass libclang_rt.profile last on linker command
ClosedPublic

Authored by thakis on Jul 23 2021, 6:26 PM.

Details

Summary

This reverts the functional change of https://reviews.llvm.org/D35385 because
it sounds like this is no longer necessary
(https://bugs.llvm.org/show_bug.cgi?id=51135#c11) and makes clang's behavior
more uniform across platforms.

After committing this, I noticed that this is needed for correctness for profiling
builds with lld: https://bugs.llvm.org/show_bug.cgi?id=51135#c14

Diff Detail

Event Timeline

thakis requested review of this revision.Jul 23 2021, 6:26 PM
thakis created this revision.
thakis edited reviewers, added: ributzka, vsk; removed: Restricted Project.
thakis edited subscribers, added: cfe-commits; removed: llvm-commits.

Whoops, I'm so used to sending lld changes that I put the wrong reviewers and subscribers at first. Fixed now.

@vsk, I'll go ahead and land this. If this does cause problems for you after all (on the bug you said it should be fine), please revert :)

This revision was not accepted when it landed; it landed in state Needs Review.Jul 27 2021, 4:51 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2021, 4:51 AM
thakis edited the summary of this revision. (Show Details)Jul 27 2021, 5:52 AM
vsk added a comment.Jul 29 2021, 10:56 AM

@thakis thanks for doing this, lgtm as well.