+
LLVM can be built as a cross-compiler, however some additional steps are
+ required.1 To build a cross-compiler, use
+ these instructions:
+
+ - Configure and build LLVM Suite as a native compiler. You will need
+ just TableGen from that build.
+
+ - If you have $LLVM_OBJ_ROOT=$LLVM_SRC_ROOT just execute
+ make -C utils/TableGen after configuring.
+ - Otherwise you will need to monitor building process and terminate
+ it just after TableGen was built.
+
+
+ - Copy the TableGen binary to somewhere safe (out of your build tree).
+
+ - Configure LLVM to build as a cross-compiler. To do this, supply the
+ configure script with --build and --host options that
+ are different. The values of these options must be legal target triples and
+ should specify a processor for which LLVM supports code generation.
+ - Put the saved TableGen executable into the
+ into $LLVM_OBJ_ROOT/{BUILD_TYPE}/bin directory (e.g. into
+ .../Release/bin for a Release build).
+ - Build LLVM as usual.
+
+
Notes:
+
+
+ - Cross-compiling was tested only with Linux as
+ build platform and Windows as host using mingw32 cross-compiler. Other
+ combinations have not been tested.
+
+
+
+