编译安装clang(非完整教程、只是个人的一个记录)


Build LLVM and Clang:
cd llvm-project
mkdir build (in-tree build is not supported)
cd build
cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
make
This builds both LLVM and Clang for debug mode.

 

posted @ 2020-06-15 09:29  He_LiangLiang  阅读(555)  评论(0编辑  收藏  举报