Christian Heimes | 4a7cae5 | 2007-11-08 23:55:45 +0000 | [diff] [blame] | 1 | @echo off |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [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. |
Kristján Valur Jónsson | c45ea9e | 2012-05-19 21:10:14 +0000 | [diff] [blame] | 9 | |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 10 | echo Build environments: x86, amd64, x86_amd64 |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 11 | echo. |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [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" %* |