LLVM in windows
-
在github上下载最新的Release版本的源码zip包
-
解压后进入"llvm-project-llvmorg-12.0.0"目录下
-
运行cmake
> cmake -S .\llvm\ -B build -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86;WebAssembly" -DLLVM_TARGET_ARCH="x86_64" -DLLVM_BUILD_TOOLS=OFF -DLLVM_INCLUDE_TOOLS=OFF -DLLVM_BUILD_EXAMPLES=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_BUILD_TESTS=OFF -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_USE_OPROFILE=ON -DLLVM_USE_INTEL_JITEVENTS=ON -DLLVM_ENABLE_ASSERTIONS=OFF -DLLVM_ENABLE_IDE=ON -DLLVM_USE_OPROFILE=OFF
> cmake --build build --config Release
See also: