[llvm-dev] Cross Compiling CompilerRT
Jonathan Roelofs via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 26 10:17:27 PDT 2015
On 10/26/15 3:21 AM, Jan Tlatlik via llvm-dev wrote:
> I would like to build CompilerRT (builtins) for our architecture from an
> x86 host archticture.
> However, in the main CMakeLists.txt file it says:
> # An important constraint of the build is that it only produces libraries
> # based on the ability of the host toolchain to target various platforms.
> Does that mean I would have to compile clang + LLVM with x86 and our own
> architecture as
> configured targets first and do a subsequent build to be able to cross
> compile CompilerRT?
> Or is there an easier way to bring compilerRT to build it for our CPU?
If you are building with CMake, set
-DLLVM_BUILD_EXTERNAL_COMPILER_RT=On, and it will use the just-built
clang to build compiler-rt. Then you won't have to worry about
The autotools build works this way by default.
> Jan Tlatlik
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
More information about the llvm-dev