Skip to content

Commit c247153

Browse files
refackBridgeAR
authored andcommitted
build,win: simplify new msbuild_arg option
PR-URL: #26431 Refs: #25994 Reviewed-By: João Reis <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 0a1537e commit c247153

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: vcbuild.bat

+4-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ set no_cctest=
6363
set cctest=
6464
set openssl_no_asm=
6565
set doc=
66-
set extra_msbuild_args=^
66+
set extra_msbuild_args=
6767

6868
:next-arg
6969
if "%1"=="" goto args-done
@@ -138,8 +138,7 @@ if /i "%1"=="no-cctest" set no_cctest=1&goto arg-ok
138138
if /i "%1"=="cctest" set cctest=1&goto arg-ok
139139
if /i "%1"=="openssl-no-asm" set openssl_no_asm=1&goto arg-ok
140140
if /i "%1"=="doc" set doc=1&goto arg-ok
141-
if /i "%1"=="binlog" set extra_msbuild_args=%extra_msbuild_args% /binaryLogger:%config%\node.binlog&goto arg-ok
142-
if /i "%1"=="msbuild_arg" set extra_msbuild_args=%extra_msbuild_args% %2&goto arg-ok-2
141+
if /i "%1"=="binlog" set extra_msbuild_args=/binaryLogger:%config%\node.binlog&goto arg-ok
143142

144143
echo Error: invalid command line option `%1`.
145144
exit /b 1
@@ -258,6 +257,7 @@ set vcvars_call="%VCINSTALLDIR%\Auxiliary\Build\vcvarsall.bat" %vcvarsall_arg%
258257
echo calling: %vcvars_call%
259258
call %vcvars_call%
260259
if errorlevel 1 goto msbuild-not-found
260+
if defined DEBUG_HELPER @ECHO ON
261261
:found_vs2017
262262
echo Found MSVS version %VisualStudioVersion%
263263
set GYP_MSVS_VERSION=2017
@@ -323,6 +323,7 @@ if "%target%"=="Build" (
323323
if defined cctest set target="Build"
324324
)
325325
if "%target%"=="rename_node_bin_win" if exist "%config%\cctest.exe" del "%config%\cctest.exe"
326+
if defined msbuild_args set "extra_msbuild_args=%extra_msbuild_args% %msbuild_args%"
326327
msbuild node.sln %msbcpu% /t:%target% /p:Configuration=%config% /p:Platform=%msbplatform% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo %extra_msbuild_args%
327328
if errorlevel 1 (
328329
if not defined project_generated echo Building Node with reused solution failed. To regenerate project files use "vcbuild projgen"

0 commit comments

Comments
 (0)