Build LLVM From Source
Quickly had Github LLVM built from source again. Just follow the LLVM official website:
1. Git clone
1 | $ ➜ git clone https://github.com/llvm/llvm-project.git |
2. CMake Configuration
1 | $ ➜ llvm-project git:(main) cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_ENABLE_PROJECTS=all -DBUILD_SHARED_LIBS=ON |
3. Build
1 | $ ➜ llvm-project git:(main) cmake --build build -j32 |
4. Installation
1 | $ ➜ llvm-project git:(main) sudo cmake --install build --prefix /usr/local |