Skip to content

Commit 65b495a

Browse files
committed
windows CI: use MinSizeRel to work around MSVC bug
See #3024
1 parent 1d6d6d5 commit 65b495a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci/azure/windows_script.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliar
1717

1818
mkdir %ZIGBUILDDIR%
1919
cd %ZIGBUILDDIR%
20-
cmake.exe .. -Thost=x64 -G"Visual Studio 16 2019" -A x64 "-DCMAKE_INSTALL_PREFIX=%ZIGINSTALLDIR%" "-DCMAKE_PREFIX_PATH=%ZIGPREFIXPATH%" -DCMAKE_BUILD_TYPE=Release || exit /b
21-
msbuild /p:Configuration=Release INSTALL.vcxproj || exit /b
20+
REM Here we use MinSizeRel instead of Release to work around https://github.com/ziglang/zig/issues/3024
21+
cmake.exe .. -Thost=x64 -G"Visual Studio 16 2019" -A x64 "-DCMAKE_INSTALL_PREFIX=%ZIGINSTALLDIR%" "-DCMAKE_PREFIX_PATH=%ZIGPREFIXPATH%" -DCMAKE_BUILD_TYPE=MinSizeRel || exit /b
22+
msbuild /p:Configuration=MinSizeRel INSTALL.vcxproj || exit /b
2223

2324
"%ZIGINSTALLDIR%\bin\zig.exe" build test || exit /b
2425

0 commit comments

Comments
 (0)