-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: avoid calling configure twice from vcbuild #2128
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,19 +86,12 @@ if "%i18n_arg%"=="intl-none" set i18n_arg=--with-intl=none | |
|
||
call :getnodeversion || exit /b 1 | ||
|
||
@rem Set environment for msbuild | ||
:project-gen | ||
@rem Skip project generation if requested. | ||
if defined noprojgen goto msbuild | ||
|
||
@rem Generate the VS project. | ||
SETLOCAL | ||
if defined VS100COMNTOOLS call "%VS100COMNTOOLS%\VCVarsQueryRegistry.bat" | ||
python configure %download_arg% %i18n_arg% %debug_arg% %snapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch% --tag=%TAG% | ||
if errorlevel 1 goto create-msvs-files-failed | ||
if not exist node.sln goto create-msvs-files-failed | ||
echo Project files generated. | ||
ENDLOCAL | ||
if defined VS100COMNTOOLS call "%VS100COMNTOOLS%\VCVarsQueryRegistry.bat" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't support 2010 so this call to "%VS100COMNTOOLS%\VCVarsQueryRegistry.bat" should also go away |
||
|
||
@rem Look for Visual Studio 2015 | ||
if not defined VS140COMNTOOLS goto vc-set-2013 | ||
|
@@ -128,12 +121,6 @@ echo Failed to find Visual Studio installation. | |
goto exit | ||
|
||
:msbuild-found | ||
|
||
:project-gen | ||
@rem Skip project generation if requested. | ||
if defined noprojgen goto msbuild | ||
|
||
@rem Generate the VS project. | ||
python configure %download_arg% %i18n_arg% %debug_arg% %snapshot_arg% %noetw_arg% %noperfctr_arg% --dest-cpu=%target_arch% --tag=%TAG% | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These lines should not be deleted here. They should be deleted from the other copy above. |
||
if errorlevel 1 goto create-msvs-files-failed | ||
if not exist node.sln goto create-msvs-files-failed | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need to set the environment even if we skip project generation