[PATCH] D68407: [RISCV] Use compiler-rt if no GCC installation detected

Sam Elliott via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 03:46:48 PDT 2019


lenary requested changes to this revision.
lenary added a comment.
This revision now requires changes to proceed.

Please can you add a test for riscv32 and riscv64 without libgcc?

I also think you want to be smarter about detecting the need/request for libgcc. Look for `AddRunTimeLibs` in clang/lib/Driver/ToolChains/CommonArgs.cpp - I think that will get you quite far. I think you can override `getCompilerRTArgString` for your toolchain, and also `GetDefaultRuntimeLibType`. For the correct compiler-rt stuff, you want `ToolChain::getCompilerRT` I think. Using all these methods should make these path additions a lot more robust.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68407/new/

https://reviews.llvm.org/D68407





More information about the cfe-commits mailing list