lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I want to keep you updated on my clang tests.

###########
First i want to point out the traps i felt into:
  a) you need to svn update _both_ llvm _and_ clang separatly.
  b) you need to create a hardlink
from: MinGW-W64\i686-4.8.1-win32-sjlj-rt_v3-rev2\mingw32\i686-w64-mingw32 to: llvm\i686-w64-mingw32 (i did so using link shell extension[1].)

############
1. install MinGW64[2] i686-4.8.1-win32-sjlj-rt_v3-rev2 (other versions may work too) 2. insert mingw-w64\i686-4.8.1-win32-sjlj-rt_v3-rev2\mingw32\bin into your path.
3. checkout llvm [3]
4. checkout clang [4] (into llvm\tools\clang)
5. install CMake
6. install python
7. svn update llvm _and_ clang
8. create a output folder, for instance: llvm\_build
9. use cmake-gui to generate makefiles.
    i changed :
    BUILD_SHARED_LIBS = yes
    LLVM_TARGETS_TO_BUILD = X86
10. run make.
make errors out a few times while generating dep files. you can rerun make and make runs untiler the next dep file error happens once. Finally you will get all files compiled sucessfully.
11: make install
12: create the link like mentioned in my trap b) :)
13 insert llvm/bin into your path.

you are done.

good luck.
Ulrich.

------------------------------------------------
[1]: http://www.heise.de/download/link-shell-extension.html
[2]: http://sourceforge.net/projects/mingw-w64/
[3]: http://llvm.org/docs/GettingStarted.html#checkout
[4]: http://clang.llvm.org/get_started.html#build