blob: 9d4c9d1c32f7a4a345d41dfeb247e9cb1978d7be [file] [log] [blame]
Christian Heimes4a7cae52007-11-08 23:55:45 +00001@echo off
Steve Dower65e4cb12014-11-22 12:54:57 -08002rem 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.
Kristján Valur Jónssonc45ea9e2012-05-19 21:10:14 +00009
Steve Dower65e4cb12014-11-22 12:54:57 -080010echo Build environments: x86, amd64, x86_amd64
Christian Heimes5b5e81c2007-12-31 16:14:33 +000011echo.
Steve Dower65e4cb12014-11-22 12:54:57 -080012set VSTOOLS=%VS140COMNTOOLS%
13if "%VSTOOLS%"=="" set VSTOOLS=%VS120COMNTOOLS%
14if "%VSTOOLS%"=="" set VSTOOLS=%VS110COMNTOOLS%
15if "%VSTOOLS%"=="" set VSTOOLS=%VS100COMNTOOLS%
16call "%VSTOOLS%..\..\VC\vcvarsall.bat" %*