File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
44
44
# see https://github.com/llvm/llvm-project/pull/82393 and
45
45
# https://discourse.llvm.org/t/rfc-future-of-windows-pre-commit-ci/76840/40
46
46
# for further information.
47
+ # We limit the number of parallel compile jobs to 24 control memory
48
+ # consumption and improve build reliability.
47
49
cmake -S " ${MONOREPO_ROOT} " /llvm -B " ${BUILD_DIR} " \
48
50
-D LLVM_ENABLE_PROJECTS=" ${projects} " \
49
51
-G Ninja \
@@ -58,7 +60,9 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
58
60
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
59
61
-D CMAKE_EXE_LINKER_FLAGS=" /MANIFEST:NO" \
60
62
-D CMAKE_MODULE_LINKER_FLAGS=" /MANIFEST:NO" \
61
- -D CMAKE_SHARED_LINKER_FLAGS=" /MANIFEST:NO"
63
+ -D CMAKE_SHARED_LINKER_FLAGS=" /MANIFEST:NO" \
64
+ -D LLVM_PARALLEL_COMPILE_JOBS=16 \
65
+ -D LLVM_PARALLEL_LINK_JOBS=4
62
66
63
67
echo " --- ninja"
64
68
# Targets are not escaped as they are passed as separate arguments.
You can’t perform that action at this time.
0 commit comments