Changes for mpfr toolset discussed in #1993

This commit is contained in:
Thomas Krijnen
2022-04-19 15:33:09 +02:00
committed by GitHub
parent 2cd7b08c47
commit 1705e6f565
+3
View File
@@ -229,9 +229,12 @@ if NOT "%USE_STATIC_RUNTIME%"=="FALSE" git apply "%~dp0patches\mpfr_runtime.patc
IF NOT %ERRORLEVEL%==0 GOTO :Error IF NOT %ERRORLEVEL%==0 GOTO :Error
if "%VS_VER%"=="2017" ( if "%VS_VER%"=="2017" (
set mpfr_sln=build.vc15 set mpfr_sln=build.vc15
set orig_platform_toolset=v141
) else ( ) else (
set mpfr_sln=build.vs19 set mpfr_sln=build.vs19
set orig_platform_toolset=v142
) )
powershell -c "get-childitem %DEPENDENCY_DIR%\%mpfr_sln% -recurse -include *.vcxproj | select -expand fullname | foreach { (Get-Content $_) -replace '%orig_platform_toolset%', 'v%VC_VER:.=%' | Set-Content $_ }"
call :BuildSolution "%DEPENDENCY_DIR%\%mpfr_sln%\lib_mpfr.sln" %DEBUG_OR_RELEASE% lib_mpfr call :BuildSolution "%DEPENDENCY_DIR%\%mpfr_sln%\lib_mpfr.sln" %DEBUG_OR_RELEASE% lib_mpfr
IF NOT %ERRORLEVEL%==0 GOTO :Error IF NOT %ERRORLEVEL%==0 GOTO :Error
REM This command fails because not all msvc projects are patched with the right sdk version REM This command fails because not all msvc projects are patched with the right sdk version