[LLVMdev] Deprecating autoconf/make?

David Chisnall David.Chisnall at cl.cam.ac.uk
Thu May 23 05:37:17 PDT 2013

On 23 May 2013, at 07:53, Owen Anderson <resistor at mac.com> wrote:

>> build native clang
>> build next clang with some target that supplies a sysroot and a
>> -target option to the native clang
> Aren't there issues with tblgen needing to be compiled for the host even in the second round in this configuration?

I am currently using the CMake build system to cross-build LLVM/Clang for MIPS.  I have two build directories, one which builds for x86 and one for MIPS.  The MIPS build directory is set up to use the compiler and tablegen from the host.  There are a few minor issues, but nothing serious.  Having to specify the location of llvm and clang TableGen separately seems redundant.  It would be nice to just say 'here is my existing LLVM/Clang build directory, use everything from there (including the compiler)'.  The more annoying problem is that for some reason, the LLVM CMake files don't respect CMake toolchain files - I didn't even think this was possible - so I need to manually specify all of the things that are specified in the toolchain file.

I don't understand the compiler-rt issue.  It can't be built with the just-built clang because that clang won't run on the build system.  It has to build with the cross compiler.


More information about the llvm-dev mailing list