build

Fangrui Song 2018-12-04 10:52:43 -08:00
parent 75655224cb
commit ab17a5ea65

@ -109,7 +109,7 @@ git clone https://git.llvm.org/git/clang.git llvm/tools/clang
cd llvm
# create a build directory named `Release/`
cmake -H. -BRelease -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DLLVM_ENABLE_LLD=ON -DLLVM_TARGETS_TO_BUILD=X86
ninja -C Release clangFormat clangIndex clangTooling
ninja -C Release clangFormat clangFrontendTool clangIndex clangTooling
```
* Remove `LLVM_ENABLE_LLD` if you don't have lld (a much faster linker than bfd/gold) installed