New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake build for compiler-rt should use just-built clang #14481
Comments
Update (from Sanitizer tools perspective):
|
FWIW, I still like having a choice in compiler for building compiler-rt. I currently build the powerpc-darwin8 branch using g++-4.0 in stage-1, and only recently have been able to build stage-2 compiler-rt using stage-1-clang. Besides, in the current state, it is fairly easy to build compiler-rt using clang in a second stage. |
What's the status of this today? Do we build compiler-rt with CMAKE_C_COMPILER by default? |
Yes, today we build compiler-rt with host compiler by default. |
I started to look at implementing this, and discovered that Alexey has already written & committed a patch to do it: https://www.mail-archive.com/cfe-commits@cs.uiuc.edu/msg91501.html What would it take to get LLVM_BUILD_EXTERNAL_COMPILER_RT turned on by default (so as to unblock bug 15732)? |
I did just try to turn it ON an got that error while configuring the project: CMake Error at tools/clang/runtime/CMakeLists.txt:28 (message): So, I don't think turning it ON by default is a good option, at least until we require a cmake version that solve that issue. |
Copying my response in llvmdev here: |
Note that Android build of compiler-rt (see if (ANDROID) branches in CMake) is already factored the way you describe, and it is indeed very simple |
This should work now as of r250064. It is not enabled by default, but setting We should consider making this the default behavior once this has been tested a bit more widely. |
A good first step would be to switch over a couple of the buildbots. |
Marking as resolved. Please report any issues as new bugs. |
mentioned in issue llvm/llvm-bugzilla-archive#15732 |
Extended Description
This would be useful as:
The text was updated successfully, but these errors were encountered: