Skip to content

Commit

Permalink
Use VS2022 for libtorch windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed May 3, 2023
1 parent e919e17 commit 2922d7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions windows/internal/smoke_test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ pushd tmp\libtorch

set VC_VERSION_LOWER=17
set VC_VERSION_UPPER=18
IF "%VC_YEAR%" == "2019" (
set VC_VERSION_LOWER=16
set VC_VERSION_UPPER=17
)
REM IF "%VC_YEAR%" == "2019" (
REM set VC_VERSION_LOWER=16
REM set VC_VERSION_UPPER=17
REM )

for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -legacy -products * -version [%VC_VERSION_LOWER%^,%VC_VERSION_UPPER%^) -property installationPath`) do (
if exist "%%i" if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (
Expand Down

0 comments on commit 2922d7d

Please sign in to comment.