Skip to content
Snippets Groups Projects
Commit 9df93ee4 authored by Dirk Pranke's avatar Dirk Pranke
Browse files

Make Visual Studio 2017 Community Edition work w/ GYP.

Change-Id: I474dcb1c5f6dea03a5b82af62f90b28e9b9cfbb9
Reviewed-on: https://chromium-review.googlesource.com/c/1358041


Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
parent 6dbf304b
No related branches found
No related tags found
No related merge requests found
......@@ -790,8 +790,16 @@ class TestGypOnMSToolchain(TestGypBase):
@staticmethod
def _ComputeVsvarsPath(devenv_path):
devenv_dir = os.path.split(devenv_path)[0]
vsvars_path = os.path.join(devenv_path, '../../Tools/vsvars32.bat')
return vsvars_path
# Check for location of Community install (in VS2017, at least).
vcvars_path = os.path.join(devenv_path, '..', '..', '..', '..', 'VC',
'Auxiliary', 'Build', 'vcvars32.bat')
if os.path.exists(vcvars_path):
return os.path.abspath(vcvars_path)
vsvars_path = os.path.join(devenv_path, '..', '..', 'Tools',
'vsvars32.bat')
return os.path.abspath(vsvars_path)
def initialize_build_tool(self):
super(TestGypOnMSToolchain, self).initialize_build_tool()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment