Use vcvarsall in Xenia build script when available, VcDevCmd otherwise.

This commit is contained in:
gibbed 2019-04-18 10:56:27 -05:00
parent b594f97027
commit 3d56d6c46c
1 changed files with 6 additions and 2 deletions

View File

@ -109,6 +109,10 @@ def import_vs_environment():
vcvars_path = os.environ['VS140COMNTOOLS'] vcvars_path = os.environ['VS140COMNTOOLS']
vcvars_path = os.path.join(tools_path, '..\\..\\vc\\vcvarsall.bat') vcvars_path = os.path.join(tools_path, '..\\..\\vc\\vcvarsall.bat')
env_tool_args = [vcvars_path, 'x64', '&&', 'set'] env_tool_args = [vcvars_path, 'x64', '&&', 'set']
else:
vcvars_path = os.path.join(install_path, 'VC\\Auxiliary\\Build\\vcvarsall.bat')
if os.path.isfile(vcvars_path) and os.access(vcvars_path, os.X_OK):
env_tool_args = [vcvars_path, 'x64', '&&', 'set']
else: else:
vsdevcmd_path = os.path.join(install_path, 'Common7\\Tools\\VsDevCmd.bat') vsdevcmd_path = os.path.join(install_path, 'Common7\\Tools\\VsDevCmd.bat')
env_tool_args = [vsdevcmd_path, '-arch=amd64', '-host_arch=amd64'] env_tool_args = [vsdevcmd_path, '-arch=amd64', '-host_arch=amd64']