building llvm-2.6
- download and install MinGW
- download and install cmake
- download llvm
- tar xvzf llvm-2.6.tar.gz
- mkdir llvm-cmake
- cd llvm-cmake
- cmake -G "MinGW Makefiles" ..\llvm-2.6
- it'll fail
- open CMakeCache.txt
- write CMAKE_C_COMPILER_ENVVAR:FILEPATH=C:/MinGW/bin/gcc.exe
- cmake -G "MinGW Makefiles" ..\llvm-2.6
- mingw32-make
For llvm 2.7,
- unzip llvm-2.7
- unzip clang source under llvm-27/tools/clang
- cd llvm-cmake
- cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX="/home/opt/llvm" ..\llvm-2.7
- mingw32-make DESTDIR=C: install
No comments:
Post a Comment