ci: add patch for mpir build script to fix failing build when VS2026 is installed

This commit is contained in:
Josef Wienerroither
2026-01-16 12:13:24 +01:00
parent 6f871fb13b
commit 55c2deea37
2 changed files with 18 additions and 0 deletions
+4
View File
@@ -324,6 +324,10 @@ powershell -c "get-content %~dp0patches\mpir.patch | %%{$_ -replace \"sdk\",\"%U
IF NOT %ERRORLEVEL%==0 GOTO :Error
if NOT "%USE_STATIC_RUNTIME%"=="FALSE" git apply "%~dp0patches\mpir_runtime.patch" --unidiff-zero --ignore-whitespace
IF NOT %ERRORLEVEL%==0 GOTO :Error
REM patch to force build using VS2022, in case VS2026 is installed, which currently fails to build mpir
git apply "%~dp0patches\mpir_build.patch" --unidiff-zero --ignore-whitespace
IF NOT %ERRORLEVEL%==0 GOTO :Error
cd msvc
cd vs%VS_VER:~2,2%
call .\msbuild.bat gc LIB %VS_PLATFORM% %DEBUG_OR_RELEASE%