From 65b495af58bcd010b997d9036ee39808451ef76c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 22 Sep 2019 15:59:06 -0400 Subject: [PATCH] windows CI: use MinSizeRel to work around MSVC bug See #3024 --- ci/azure/windows_script.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/azure/windows_script.bat b/ci/azure/windows_script.bat index ee6016a345..f1a69202e0 100644 --- a/ci/azure/windows_script.bat +++ b/ci/azure/windows_script.bat @@ -17,8 +17,9 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliar mkdir %ZIGBUILDDIR% cd %ZIGBUILDDIR% -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 -msbuild /p:Configuration=Release INSTALL.vcxproj || exit /b +REM Here we use MinSizeRel instead of Release to work around https://github.com/ziglang/zig/issues/3024 +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 +msbuild /p:Configuration=MinSizeRel INSTALL.vcxproj || exit /b "%ZIGINSTALLDIR%\bin\zig.exe" build test || exit /b