summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2021-05-31 20:08:26 +0200
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2021-06-01 00:26:28 +0200
commit3457130eb623dff8c40315401485fc368aad5bc1 (patch)
treeb13966303096512b2cc8695067bfdc5257cd1cdc /vcbuild.bat
parent58bd04632402f24b4db3b11991df05ee7dba0602 (diff)
downloadnode-new-3457130eb623dff8c40315401485fc368aad5bc1.tar.gz
build: work around bug in MSBuild v16.10.0
This allows to build Node.js at the (temporary) cost of longer build times. Refs: https://github.com/nodejs/node/issues/38872 Refs: https://github.com/dotnet/msbuild/releases/tag/v16.10.0 Refs: https://github.com/dotnet/msbuild/pull/6465 Refs: https://github.com/dotnet/msbuild/issues/6373 PR-URL: https://github.com/nodejs/node/pull/38873 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 47e2f3b833..81a8efb62e 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -334,6 +334,8 @@ if "%target%"=="Build" (
if defined cctest set target="Build"
)
if "%target%"=="node" if exist "%config%\cctest.exe" del "%config%\cctest.exe"
+@rem TODO(targos): Remove next line after MSBuild 16.10.1 is released.
+if "%target%"=="node" set target="Build"
if defined msbuild_args set "extra_msbuild_args=%extra_msbuild_args% %msbuild_args%"
@rem Setup env variables to use multiprocessor build
set UseMultiToolTask=True