Skip to content

Commit

Permalink
Update LLVM build command, enable clang-tools-extra project.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Feb 23, 2019
1 parent 90b0354 commit 69f6731
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions llvm/build-llvm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,19 @@ gendef python37.dll
dlltool --dllname python37.dll --def python37.def --output-lib libpython37.a
ranlib libpython37.a

cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='llvm;clang;lld;lldb;compiler-rt;openmp;parallel-libs;polly;libclc' -DLLVM_ENABLE_ASSERTIONS=ON -DLLDB_RELOCATABLE_PYTHON=1 -DPYTHON_HOME=D:/Dev/Python3 -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DCMAKE_INSTALL_PREFIX=F:/Dev/LLVM-SVN ../llvm/llvm
see all projects defined by LLVM_ALL_PROJECTS

cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='llvm;clang;clang-tools-extra;lld;lldb;compiler-rt;openmp;parallel-libs;polly;libclc' -DLLVM_ENABLE_ASSERTIONS=ON -DLLDB_RELOCATABLE_PYTHON=1 -DPYTHON_HOME=D:/Dev/Python3 -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DCMAKE_INSTALL_PREFIX=F:/Dev/LLVM-SVN ../llvm/llvm

mingw32-make -j4 libclang
mingw32-make -j4 clang
mingw32-make -j4 clang-tidy

cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='llvm;clang;lld;lldb;compiler-rt;openmp;parallel-libs;polly;libclc' -DLLVM_ENABLE_ASSERTIONS=ON -DLLDB_RELOCATABLE_PYTHON=1 -DPYTHON_HOME=D:/Dev/Python3 -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DCMAKE_INSTALL_PREFIX=F:/Dev/LLVM-SVN ../llvm/llvm
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='llvm;clang;clang-tools-extra;lld;lldb;compiler-rt;openmp;parallel-libs;polly;libclc' -DLLVM_ENABLE_ASSERTIONS=ON -DLLDB_RELOCATABLE_PYTHON=1 -DPYTHON_HOME=D:/Dev/Python3 -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON -DCMAKE_INSTALL_PREFIX=F:/Dev/LLVM-SVN ../llvm/llvm

ninja -j4 libclang
ninja -j4 clang
ninja -j4 clang-tidy

Z3 for Clang Static Analyzer
https://github.com/Z3Prover/z3/releases
Expand Down

0 comments on commit 69f6731

Please sign in to comment.