You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
728 B

  1. @echo off
  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.
  9. echo Build environments: x86, amd64, x86_amd64
  10. echo.
  11. set VSTOOLS=%VS140COMNTOOLS%
  12. if "%VSTOOLS%"=="" set VSTOOLS=%VS120COMNTOOLS%
  13. if "%VSTOOLS%"=="" set VSTOOLS=%VS110COMNTOOLS%
  14. if "%VSTOOLS%"=="" set VSTOOLS=%VS100COMNTOOLS%
  15. call "%VSTOOLS%..\..\VC\vcvarsall.bat" %*