-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
VS 2015 support #2036
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
Merged
Merged
VS 2015 support #2036
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
build,win: set env before generating projects
vcbuild.bat calls python configure before setting GYP_MSVS_VERSION, so SelectVisualStudioVersion (tools\gyp\pylib\gyp\MSVSVersion.py) defaults to 'auto' and selects VS 2005. vcbuild sets the environment in the current shell, so this issue would manifest itself only on the first invocation of the script in any given shell windows. Reviewed-By: Julien Gilli <jgilli@fastmail.fm> PR-URL: nodejs/node-v0.x-archive#20109
- Loading branch information
commit c0c0d7326938afc689a2b6a59440956b3d054e4d
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,24 +84,9 @@ if "%i18n_arg%"=="full-icu" set i18n_arg=--with-intl=full-icu | |
| if "%i18n_arg%"=="small-icu" set i18n_arg=--with-intl=small-icu | ||
| if "%i18n_arg%"=="intl-none" set i18n_arg=--with-intl=none | ||
|
|
||
| :project-gen | ||
| @rem Skip project generation if requested. | ||
| if defined noprojgen goto msbuild | ||
|
|
||
| if defined NIGHTLY set TAG=nightly-%NIGHTLY% | ||
|
|
||
| @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 | ||
|
|
||
| :msbuild | ||
| @rem Skip project generation if requested. | ||
| if defined nobuild goto sign | ||
| @rem Set environment for msbuild | ||
|
|
||
| @rem Look for Visual Studio 2013 | ||
| if not defined VS120COMNTOOLS goto msbuild-not-found | ||
|
|
@@ -115,10 +100,25 @@ set GYP_MSVS_VERSION=2013 | |
| goto msbuild-found | ||
|
|
||
| :msbuild-not-found | ||
| echo Build skipped. To build, this file needs to run from VS cmd prompt. | ||
| goto run | ||
| 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% %nosnapshot_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. | ||
|
|
||
| :msbuild | ||
| @rem Skip project generation if requested. | ||
|
Contributor
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. Minor issue, not introduced by your changes: comment should say |
||
| if defined nobuild goto sign | ||
|
|
||
| @rem Build the sln with msbuild. | ||
| msbuild node.sln /m /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo | ||
| if errorlevel 1 goto exit | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Cherry-picking leftover...
%nosnapshot_arg%should be%snapshot_arg%