LLVM cross compiler toolchain on Windows x86

Hi All,

I want to build llvm/Clang cross compiler toolchain C and C++ for ARM on x86. Is there any available document or steps that can help me.

Any help will be highly appreciated.

Hi Sandeep,

This might help:


http://clang.llvm.org/get_started.html (go to Using Visual Studio)

To build toolchain for ARM you need to pass the LLVM_TARGETS_TO_BUILD=“ARM” option to cmake command.

Hi Sandeep,

Clang is a cross-compiler by nature. If you build it without
additional options, you get all back-ends. But a few missing
components need to be supplied to complete the compilation, namely
libraries, special headers and a working linker.

On Linux, that'd be the GNU toolchain (glibc, binutils). On Windows,
you can try MingW. Some other people might help you with which other
ARM toolchains are available.

There are two main documents:

What are the perils and options of cross-compiling with Clang:

A use case: Cross compiling LLVM itself:

These have a tinge of Unix in them, but a lot of it should be relevant
to Windows as well, especially if you use MingW (and Cygwin).

Hope that helps.


The Android NDK (Native Development Kit) has a complete cross-compiler toolchain, and comes in versions for all popular platforms. You can use it as-is or replace some parts with versions you build from source if you want.