tar xf cmake-3.11.4.tar.gz
cd cmake-3.11.4
./bootstrap && make -j16 && make install
tar -xvf llvm-8.0.0.src.tar.xz
tar -xvf cfe-8.0.0.src.tar.xz
mv cfe-8.0.0.src clang
mv clang llvm-8.0.0.src/tools
cd llvm-8.0.0.src
mkdir build
cd build
cmake .. -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/opt/llvm8 -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86"
make -j4
make install
网友评论