Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7a2edea

Browse filesBrowse files
bzozdanielleadams
authored andcommitted
win, build: fix build time on Windows
Sets MSBuild experimental switches to make it build in parallel project files generated by gyp 0.5.0. Fixes: #35921 PR-URL: #35932 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent a7350b3 commit 7a2edea
Copy full SHA for 7a2edea

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎vcbuild.bat‎

Copy file name to clipboardExpand all lines: vcbuild.bat
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ if "%target%"=="Build" (
338338
)
339339
if "%target%"=="node" if exist "%config%\cctest.exe" del "%config%\cctest.exe"
340340
if defined msbuild_args set "extra_msbuild_args=%extra_msbuild_args% %msbuild_args%"
341+
@rem Setup env variables to use multiprocessor build
342+
set UseMultiToolTask=True
343+
set EnforceProcessCountAcrossBuilds=True
344+
set MultiProcMaxCount=%NUMBER_OF_PROCESSORS%
341345
msbuild node.sln %msbcpu% /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoItemAndPropertyList;Verbosity=minimal /nologo %extra_msbuild_args%
342346
if errorlevel 1 (
343347
if not defined project_generated echo Building Node with reused solution failed. To regenerate project files use "vcbuild projgen"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.