[PATCH] D13131: Allow the builting of the builtins library with a forced compiler.

Vasileios Kalintiris via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 04:00:30 PDT 2015


vkalintiris added a comment.

> What is your CMake invocation, ...


`cmake -G Ninja -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=mips-mti-linux-clang -DCMAKE_C_FLAGS='-EB -mabi=32 -target mips-mti-linux -mips32r2 -mhard-float -fPIC -nostdlib' -DCMAKE_C_COMPILER_FORCED=True -DCMAKE_CXX_COMPILER_FORCED=True -DCMAKE_SIZEOF_VOID_P=4 -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=mips-r2-hard-musl -DCOMPILER_RT_BUILD_SANITIZERS=Off /home/vk/repos/compiler-rt`

> and why doesn't CMake succeeds in verifying the host compiler?


Because I'm trying to build a `mips-mti-linux` toolchain from scratch (see http://reviews.llvm.org/D13340). This toolchain does not depend on the existence of a GCC installation. The first thing that I have to build is the builtins component from compiler-rt. After that I can build the C library (musl in my case), libcxx, libcxxabi, etc. So, at this point, without C/C++ libraries, CMake can not perform any reasonable test that depends on the compiler. This invocation of CMake is the minimal one that allows me to build the builtins library. Although it's ugly, I'm not aware of any other possible solution with CMake.


http://reviews.llvm.org/D13131





More information about the llvm-commits mailing list