File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1000,12 +1000,21 @@ jobs:
10001000 EXT_FLAGS : -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
10011001 shell : cmd
10021002 run : |
1003+ setlocal EnableDelayedExpansion
10031004 if "%DUCKDB_PLATFORM_RTOOLS%" == "0" (
1005+ set "VCVARS_BAT="
10041006 if "%DUCKDB_PLATFORM%" == "windows_amd64" (
1005- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\ vcvars64.bat"
1007+ set "VCVARS_BAT= vcvars64.bat"
10061008 )
10071009 if "%DUCKDB_PLATFORM%" == "windows_arm64" (
1008- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsarm64.bat"
1010+ set "VCVARS_BAT=vcvarsarm64.bat"
1011+ )
1012+ if defined VCVARS_BAT (
1013+ if exist "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\!VCVARS_BAT!" (
1014+ call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\!VCVARS_BAT!"
1015+ ) else (
1016+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\!VCVARS_BAT!"
1017+ )
10091018 )
10101019 REM Rename link.exe to link-git.exe to avoid conflicts with git supplied linker.
10111020 mv "C:\Program Files\Git\usr\bin\link.exe" "C:\Program Files\Git\usr\bin\link-git.exe"
You can’t perform that action at this time.
0 commit comments