rev: release-0.15 scopes/doc/build_clang.txt -rw-r--r-- 711 bytes View raw Log this file
e53de6d7cb89 — Leonard Ritter * win32 build fix 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Notes on building clang/LLVM libraries required for scopes on Windows:

build with Visual Studio 2015

unpack llvm to clang/llvm
unpack clang to clang/llvm/tools/clang
create clang/build
cd clang/build
cmake ../llvm -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_BUILD_TESTS=OFF -DLLVM_INCLUDE_TESTS=OFF
open solution in vs 2015 and select release build
from Tools, build only llvm-config
build all from Libraries

cmake ../llvm -G "MSYS Makefiles" -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_BUILD_TESTS=OFF -DLLVM_INCLUDE_TESTS=OFF
make -j4
-DCMAKE_INSTALL_PREFIX=...