| Index: build/vs_toolchain.py
|
| diff --git a/build/vs_toolchain.py b/build/vs_toolchain.py
|
| index ed0042b8786d3135becb310bc2478ef05c5078f7..7179d86fb6b645c2cdf51ad57223d650bb1e0b79 100755
|
| --- a/build/vs_toolchain.py
|
| +++ b/build/vs_toolchain.py
|
| @@ -50,7 +50,11 @@ def SetEnvironmentAndGetRuntimeDllDirs():
|
| vs_runtime_dll_dirs = toolchain_data['runtime_dirs']
|
|
|
| os.environ['GYP_MSVS_OVERRIDE_PATH'] = toolchain
|
| - os.environ['GYP_MSVS_VERSION'] = version
|
| + if os.getenv('GYP_MSVS_VERSION'):
|
| + print ('Using the GYP_MSVS_VERSION value from the environment (%d).' %
|
| + os.getenv('GYP_MSVS_VERSION'))
|
| + else:
|
| + os.environ['GYP_MSVS_VERSION'] = version
|
| # We need to make sure windows_sdk_path is set to the automated
|
| # toolchain values in GYP_DEFINES, but don't want to override any
|
| # otheroptions.express
|
|
|