Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit f118e8c

Browse files
committed
build: limit parallel processes
Since the precompile headers (PCH) take up so much RAM, we can't use all of the CPU cores without hitting out of memory errors.
1 parent 82cd377 commit f118e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ $buildPath = "$repoRootPath\_build\$env:VSCMD_ARG_TGT_ARCH-$buildType"
1515
$packagePath = "$sourcePath\pywinrt"
1616

1717
cmake -S $sourcePath "-B$buildPath" -GNinja "-DCMAKE_BUILD_TYPE=$buildType" -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl "-DPYTHON_VERSION_STRING=$pythonVersion"
18-
cmake --build $buildPath -- -v
18+
cmake --build $buildPath -- -v -j 4
1919

2020
Copy-Item "$buildPath\*.pyd" "$packagePath\winsdk\"

0 commit comments

Comments
 (0)