blob: 2b2c0051ce912f07dba22e4f35c44f6215781f22 [file] [log] [blame]
Zachary Ware4c9c8482015-04-13 11:59:54 -05001@echo off
Zachary Ware774ac372015-04-13 12:11:40 -05002rem This script adds the latest available tools to the path for the current
3rem command window. However, most builds of Python will ignore the version
4rem of the tools on PATH and use PlatformToolset instead. Ideally, both sets of
5rem tools should be the same version to avoid potential conflicts.
6rem
7rem To build Python with an earlier toolset, pass "/p:PlatformToolset=v100" (or
8rem 'v110', 'v120' or 'v140') to the build script.
Zachary Ware4c9c8482015-04-13 11:59:54 -05009
Zachary Ware774ac372015-04-13 12:11:40 -050010echo Build environments: x86, amd64, x86_amd64
Zachary Ware4c9c8482015-04-13 11:59:54 -050011echo.
Zachary Ware774ac372015-04-13 12:11:40 -050012set VSTOOLS=%VS140COMNTOOLS%
13if "%VSTOOLS%"=="" set VSTOOLS=%VS120COMNTOOLS%
14if "%VSTOOLS%"=="" set VSTOOLS=%VS110COMNTOOLS%
15if "%VSTOOLS%"=="" set VSTOOLS=%VS100COMNTOOLS%
16call "%VSTOOLS%..\..\VC\vcvarsall.bat" %*