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
4444# see https://github.com/llvm/llvm-project/pull/82393 and
4545# https://discourse.llvm.org/t/rfc-future-of-windows-pre-commit-ci/76840/40
4646# for further information.
47+ # We limit the number of parallel compile jobs to 24 control memory
48+ # consumption and improve build reliability.
4749cmake -S " ${MONOREPO_ROOT} " /llvm -B " ${BUILD_DIR} " \
4850 -D LLVM_ENABLE_PROJECTS=" ${projects} " \
4951 -G Ninja \
@@ -58,7 +60,9 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
5860 -D MLIR_ENABLE_BINDINGS_PYTHON=ON \
5961 -D CMAKE_EXE_LINKER_FLAGS=" /MANIFEST:NO" \
6062 -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
6266
6367echo " --- ninja"
6468# Targets are not escaped as they are passed as separate arguments.
You can’t perform that action at this time.
0 commit comments