Prebuilt versions of LLVM and LLD for diamond.
- A C++ compiler
- Ninja
- LLD
- cmake
- Visual Studio
- cmake
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
git checkout llvmorg-15.0.7
cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_PARALLEL_{COMPILE,LINK}_JOBS=4 -DLLVM_ENABLE_PROJECTS="lld" -DLLVM_USE_LINKER=lld -DCMAKE_INSTALL_PREFIX=folder/where/you/want/to/leave/llvm
ninja
ninja install
Delete:
- All binaries, but
llvm-config
fromfolder/where/you/want/to/leave/llvm/bin
- Remove
share
folder fromfolder/where/you/want/to/leave/llvm/
- Remove all
.so
files fromfolder/where/you/want/to/leave/llvm/lib
- Remove
cmake
folder fromfolder/where/you/want/to/leave/llvm/lib
cmake -S llvm -B build -DLLVM_ENABLE_PROJECTS=lld -DLLVM_TARGETS_TO_BUILD=X86 -Thost=x64 -DLLVM_USE_CRT_RELEASE=MT
To build open the generated LLVM.sln
file on build
directory with Visual Studio. Select Release
and then compile. If you don't have a lot of ram you should limit thee number of cores used in for compilation. For that you can follow this link https://stackoverflow.com/a/49068569.
cmake --install . --prefix folder/where/you/want/to/leave/llvm/
Delete:
- All binaries, but
llvm-config
fromfolder/where/you/want/to/leave/llvm/bin
- Remove
share
folder fromfolder/where/you/want/to/leave/llvm/