12 lines
421 B
Bash
12 lines
421 B
Bash
|
git clone https://github.com/llvm/llvm-project.git
|
||
|
mkdir llvm-project/build
|
||
|
cd llvm-project/build
|
||
|
cmake -G Ninja ../llvm \
|
||
|
-DLLVM_ENABLE_PROJECTS=mlir \
|
||
|
-DLLVM_BUILD_EXAMPLES=ON \
|
||
|
-DLLVM_TARGETS_TO_BUILD="host" \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DLLVM_ENABLE_ASSERTIONS=ON \
|
||
|
-DLLVM_ENABLE_RTTI=ON
|
||
|
# TODO(tjingrant): why is RTTI necessary?
|
||
|
cmake --build . --target check-mlir -- -j ${PARALLEL_JOBS_LIMIT:-4}
|