@@ -62,7 +62,7 @@ set no_cctest=
6262set cctest =
6363set openssl_no_asm =
6464set doc =
65- set extra_msbuild_args = ^
65+ set extra_msbuild_args =
6666
6767:next-arg
6868if " %1 " == " " goto args-done
@@ -136,8 +136,7 @@ if /i "%1"=="no-cctest" set no_cctest=1&goto arg-ok
136136if /i " %1 " == " cctest" set cctest = 1& goto arg-ok
137137if /i " %1 " == " openssl-no-asm" set openssl_no_asm = 1& goto arg-ok
138138if /i " %1 " == " doc" set doc = 1& goto arg-ok
139- if /i " %1 " == " binlog" set extra_msbuild_args = %extra_msbuild_args% /binaryLogger:%config% \node.binlog& goto arg-ok
140- if /i " %1 " == " msbuild_arg" set extra_msbuild_args = %extra_msbuild_args% %2 & goto arg-ok-2
139+ if /i " %1 " == " binlog" set extra_msbuild_args = /binaryLogger:%config% \node.binlog& goto arg-ok
141140
142141echo Error: invalid command line option `%1 `.
143142exit /b 1
@@ -254,6 +253,7 @@ set vcvars_call="%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" %vcvarsall_arg%
254253echo calling: %vcvars_call%
255254call %vcvars_call%
256255if errorlevel 1 goto msbuild-not-found
256+ if defined DEBUG_HELPER @ ECHO ON
257257:found_vs2017
258258echo Found MSVS version %VisualStudioVersion%
259259set GYP_MSVS_VERSION = 2017
@@ -319,6 +319,7 @@ if "%target%"=="Build" (
319319 if defined cctest set target = " Build"
320320)
321321if " %target% " == " rename_node_bin_win" if exist " %config% \cctest.exe" del " %config% \cctest.exe"
322+ if defined msbuild_args set " extra_msbuild_args = %extra_msbuild_args% %msbuild_args% "
322323msbuild node.sln %msbcpu% /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoItemAndPropertyList;Verbosity=minimal /nologo %extra_msbuild_args%
323324if errorlevel 1 (
324325 if not defined project_generated echo Building Node with reused solution failed. To regenerate project files use " vcbuild projgen"
0 commit comments