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