| 1 |
@echo off |
| 2 |
rem This script adds the latest available tools to the path for the current |
| 3 |
rem command window. However, all builds of Python should ignore the version |
| 4 |
rem of the tools on PATH and use PlatformToolset instead, which should |
| 5 |
rem always be 'v90'. |
| 6 |
rem |
| 7 |
rem To build Python with a newer toolset, pass "/p:PlatformToolset=v100" (or |
| 8 |
rem 'v110', 'v120' or 'v140') to the build script. Note that no toolset |
| 9 |
rem other than 'v90' is supported! |
| 10 |
|
| 11 |
echo Build environments: x86, amd64, x86_amd64 |
| 12 |
echo. |
| 13 |
|
| 14 |
rem Set up the v90 tools first. This is mostly needed to allow PGInstrument |
| 15 |
rem builds to find the PGO DLL. Do it first so the newer MSBuild is found |
| 16 |
rem before the one from v90 (vcvarsall.bat prepends to PATH). |
| 17 |
call "%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" %* |
| 18 |
|
| 19 |
set VSTOOLS=%VS140COMNTOOLS% |
| 20 |
if "%VSTOOLS%"=="" set VSTOOLS=%VS120COMNTOOLS% |
| 21 |
if "%VSTOOLS%"=="" set VSTOOLS=%VS110COMNTOOLS% |
| 22 |
if "%VSTOOLS%"=="" set VSTOOLS=%VS100COMNTOOLS% |
| 23 |
call "%VSTOOLS%..\..\VC\vcvarsall.bat" %* |