Content-Length: 259311 | pFad | https://github.com/electron/electron/pull/11656

4E Update gyp: Add Visual Studio 2017 support by zcbenz · Pull Request #11656 · electron/electron · GitHub
Skip to content
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

Update gyp: Add Visual Studio 2017 support #11656

Merged
merged 1 commit into from
Jan 17, 2018
Merged

Update gyp: Add Visual Studio 2017 support #11656

merged 1 commit into from
Jan 17, 2018

Conversation

zcbenz
Copy link
Contributor

@zcbenz zcbenz commented Jan 17, 2018

@zcbenz zcbenz requested a review from a team January 17, 2018 01:20
@zcbenz zcbenz closed this Jan 17, 2018
@zcbenz zcbenz reopened this Jan 17, 2018
@zcbenz
Copy link
Contributor Author

zcbenz commented Jan 17, 2018

The failing test is not related to this PR, I'm merging anyway.

@zcbenz zcbenz merged commit d69c17a into master Jan 17, 2018
@zcbenz zcbenz deleted the update-gyp branch January 17, 2018 02:43
@PhoebeHui
Copy link

Thanks for doing this change to support VS2017!

I encounter an issue 'could not locate Visual Studio installation' when execute ''python script\bootstrap.py -v --target_arch=ia32"

The script/update.py looks also need update. the GYP_MSVS_VERSION should be 2017, after I made this change, everything works well.
https://github.com/electron/electron/blob/master/script/update.py#L61

The failures like
Traceback (most recent call last):
File "vendor\gyp\gyp_main.py", line 16, in
sys.exit(gyp.script_main())
File "vendor\gyp\pylib\gyp_init_.py", line 545, in script_main
return main(sys.argv[1:])
File "vendor\gyp\pylib\gyp_init_.py", line 538, in main
return gyp_main(args)
File "vendor\gyp\pylib\gyp_init_.py", line 514, in gyp_main
options.duplicate_basename_check)
File "vendor\gyp\pylib\gyp_init_.py", line 98, in Load
generator.CalculateVariables(default_variables, params)
File "vendor\gyp\pylib\gyp\generator\ninja.py", line 1695, in CalculateVariables
gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
File "vendor\gyp\pylib\gyp\msvs_emulation.py", line 1097, in CalculateCommonVariables
msvs_version = gyp.msvs_emulation.GetVSVersion(generator_flags)
File "vendor\gyp\pylib\gyp\msvs_emulation.py", line 948, in GetVSVersion
allow_fallback=False)
File "vendor\gyp\pylib\gyp\MSVSVersion.py", line 485, in SelectVisualStudioVersion
raise ValueError('Could not locate Visual Studio installation.')
ValueError: Could not locate Visual Studio installation.

Thanks,
Phoebe

@zcbenz
Copy link
Contributor Author

zcbenz commented Jan 23, 2018

It seems that we should add a flag to specify Visual Studio version, or try to automatically find out it.

@alexeykuzmin
Copy link
Contributor

@PhoebeHui

The script/update.py looks also need update. the GYP_MSVS_VERSION should be 2017, after I made this change, everything works well.

VS 2017 is only required by the Chromium 63, so we don't need to change the GYP_MSVS_VERSION in the master which uses libcc based on the Chromium 61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/electron/electron/pull/11656

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy