Last active
December 30, 2019 14:38
-
-
Save radustoenescu/33c1b73e2003ec5203282731ff7a3333 to your computer and use it in GitHub Desktop.
make llvm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -y libssl-dev python zlib1g make clang re2c lld | |
git clone https://github.com/llvm/llvm-project.git | |
git clone https://github.com/martine/ninja.git | |
git clone https://github.com/Kitware/CMake.git | |
cd ninja/ | |
CXX=clang++ ./configure.py --bootstrap | |
cp ninja /usr/bin/ | |
cd .. | |
cd CMake/ | |
CC=clang CXX=clang++ ./bootstrap | |
make -j6 | |
make install | |
cd .. | |
cd llvm-project/ | |
mkdir build && cd build | |
rm -rf /usr/bin/ld | |
ln -s /usr/bin/ld.lld /usr/bin/ld | |
CC=clang CXX=clang++ cmake -G Ninja ../llvm -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_BUILD_TESTS=ON | |
ninja |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment