From d3bcb3b695dadb9c7c8430a22b0d42f7c7fcf014 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sat, 17 Apr 2021 07:39:30 -0700 Subject: [PATCH] rm useless code --- windows/internal/vc_install_helper.bat | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/windows/internal/vc_install_helper.bat b/windows/internal/vc_install_helper.bat index 2ab0b78a4..6a2a0e0d9 100644 --- a/windows/internal/vc_install_helper.bat +++ b/windows/internal/vc_install_helper.bat @@ -1,23 +1,7 @@ -set VC_VERSION= -if "%VC_YEAR%" == "2017" if "%CUDA_VERSION%" == "92" ( - set VC_VERSION=14.13 - if not "%PYTORCH_BUILD_VERSION:1.6.=%" == "%PYTORCH_BUILD_VERSION%" if "%PYTORCH_BUILD_VERSION:dev=%" == "%PYTORCH_BUILD_VERSION%" ( - set VC_VERSION=14.11 - ) -) -if "%VC_YEAR%" == "2019" set VC_VERSION=14.28.29333 -if not "%VC_VERSION%" == "" ( - set VSDEVCMD_ARGS=-vcvars_ver=%VC_VERSION% -) -if "%VC_YEAR%" == "2017" powershell windows/internal/vs2017_install.ps1 %VC_VERSION% -if "%VC_YEAR%" == "2019" powershell windows/internal/vs2019_install.ps1 %VC_VERSION% +if "%VC_YEAR%" == "2019" powershell windows/internal/vs2019_install.ps1 set VC_VERSION_LOWER=16 set VC_VERSION_UPPER=17 -IF "%VC_YEAR%" == "2017" ( - set VC_VERSION_LOWER=15 - set VC_VERSION_UPPER=16 -) for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -products Microsoft.VisualStudio.Product.BuildTools -version [%VC_VERSION_LOWER%^,%VC_VERSION_UPPER%^) -property installationPath`) do ( if exist "%%i" if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (