llvm clang的编译和安装
获取源码
git clone https://github.com/llvm/llvm-project.git
相关依赖安装
apt-get update
apt-get install -y git vim build-essential gcc-6 g++-6 cmake swig python-swiglpk libxml2 libxml2-dev libncurses5 libncurses5-dev libedit-dev libpython-dev
LLVM编译
apt-get update
apt-get install -y git vim build-essential gcc-6 g++-6 cmake swig python-swiglpk libxml2 libxml2-dev libncurses5 libncurses5-dev libedit-dev libpython-dev
cd llvm-project
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/clang -DCMAKE_BUILD_TYPE=Debug ../llvm/
make
make install
clang编译
cd llvm-project/clang
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/clang -DCMAKE_BUILD_TYPE=Debug ../clang/
make
make install
是时候好好总结下自己走过的路。