This is an archive of the discontinued LLVM Phabricator instance.

[Android] Default to --rtlib=compiler-rt
ClosedPublic

Authored by rprichard on Feb 10 2021, 3:03 AM.

Details

Summary

By default, the driver uses the compiler-rt builtins and links with
-l:libunwind.a.

Restore the previous behavior by passing --rtlib=libgcc.

Diff Detail

Event Timeline

rprichard created this revision.Feb 10 2021, 3:03 AM
rprichard requested review of this revision.Feb 10 2021, 3:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2021, 3:03 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rprichard added subscribers: thakis, glandium.

Adding glandium and thakis for Firefox and Chrome. e.g. I suspect this change would cause the same sort of breakage seen in D95166.

danalbert accepted this revision.Feb 10 2021, 12:20 PM
This revision is now accepted and ready to land.Feb 10 2021, 12:20 PM
pirama added a subscriber: pirama.Mar 9 2021, 9:31 AM
rprichard updated this revision to Diff 329475.Mar 9 2021, 2:53 PM

Rebase this revision.

This revision was landed with ongoing or failed builds.Mar 9 2021, 6:38 PM
This revision was automatically updated to reflect the committed changes.

Hilariously enough, this breaks building compiler-rt itself inside LLVM's runtime builds setup for us. The runtimes build setup builds clang and then uses the just-built clang to build compiler-rt. That build fails to link since my just-built clang doesn't have compiler-rt available, because it's currently trying to build compiler-rt itself. That's a bug in the compiler-rt build system, and I sent out https://lists.llvm.org/pipermail/llvm-dev/2021-March/149137.html to ask what we should do about it.