The default --rtlib for Android is about to change from libgcc to
compiler-rt (D96404), which will require a more substantial change to
this script to build the builtins and libunwind. For now, keep using
libgcc.
Details
Details
Diff Detail
Diff Detail
- Repository
- rZORG LLVM Github Zorg
- Build Status
Buildable 90531 Build 125580: arc lint + arc unit
Event Timeline
Comment Actions
I also tested a version of this change where I instead added --rtlib=libgcc to the flags in configure_android. It was necessary to add --rtlib=libgcc both for compiling and linking, because at compile-time, Clang can use outline-atomics on AArch64. On other architectures, though, the --rtlib=libgcc has no effect at compile-time, and Clang printed a warning. It looks like this stage2 compiler is only used to target Android, though, so it seemed simpler to just override the default.
At some point, I think we'll want to update this script to build the builtins and libunwind before building the rest of compiler-rt.