By default, the driver uses the compiler-rt builtins and links with
-l:libunwind.a.
Restore the previous behavior by passing --rtlib=libgcc.
Paths
| Differential D96404
[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 Restore the previous behavior by passing --rtlib=libgcc.
Diff Detail
Unit TestsFailed Event Timelinerprichard added a parent revision: D96403: [Android] Use -l:libunwind.a with --rtlib=compiler-rt.Feb 10 2021, 3:04 AM Comment Actions Adding glandium and thakis for Firefox and Chrome. e.g. I suspect this change would cause the same sort of breakage seen in D95166. This revision is now accepted and ready to land.Feb 10 2021, 12:20 PM This revision was landed with ongoing or failed builds.Mar 9 2021, 6:38 PM Closed by commit rGa478b0a199f4: [Android] Default to --rtlib=compiler-rt (authored by rprichard). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions 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.
Revision Contents
Diff 322632 clang/lib/Driver/ToolChains/Linux.h
clang/lib/Driver/ToolChains/Linux.cpp
clang/test/Driver/linux-ld.c
|