[LLVMdev] mingw build problems

Jim Grosbach grosbach at apple.com
Fri Apr 17 10:25:24 PDT 2009


On Apr 17, 2009, at 8:31 AM, Jay Foad wrote:

> Another observation: GettingStarted.html still gives these
> instructions for cross-compiling LLVM:
>
>   1. Configure and build LLVM 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.
>   2. Copy the TableGen binary to somewhere safe (out of your build  
> tree).
>   3. Configure LLVM to build with 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
> that your GCC compiler supports.
>   4. Put the saved TableGen executable into the into
> $LLVM_OBJ_ROOT/{BUILD_TYPE}/bin directory (e.g. into .../Release/bin
> for a Release build).
>   5. Build LLVM as usual.
>
> ... but all this messing about with tblgen seems to be completely
> unnecessary now, presumably since this commit:
>
> http://llvm.org/viewvc/llvm-project?view=rev&revision=58981
>

Quite right. Fixed. Thanks for pointing that out!

-Jim



More information about the llvm-dev mailing list