From 809414a4e4fc1574c9539bb53e84c92fc024b2cc Mon Sep 17 00:00:00 2001 From: Trevor SANDY Date: Wed, 11 Sep 2024 00:52:48 +0200 Subject: [PATCH] Win: add Microsoft.VisualStudio.Component.WinXP --- .github/workflows/build.yml | 1 + build.cmd | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9239ea58..01ff8c52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,6 +76,7 @@ jobs: $InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" $ComponentsToAdd= @( "Microsoft.VisualStudio.Component.VC.140" + "Microsoft.VisualStudio.Component.WinXP" ) [string]$WorkloadArgs = $ComponentsToAdd | ForEach-Object {" --add " + $_} $Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$WorkloadArgs, '--quiet', '--norestart', '--nocache') diff --git a/build.cmd b/build.cmd index 1a56eb69..9de8b0cf 100644 --- a/build.cmd +++ b/build.cmd @@ -107,7 +107,7 @@ rem Visual C++ 2019 -vcvars_ver=14.2 Toolset v142 VSVersion 16.11.3 _MSC_VER 192 rem Visual C++ 2022 -vcvars_ver=14.4 Toolset v143 VSVersion 17.11.3 _MSC_VER 1941 - (-vcvars_ver set to 14.4 since VSVersion 17.10) IF "%LP3D_MSC_VER%" == "" SET LP3D_MSC_VER=1900 IF "%LP3D_VCSDKVER%" == "" SET LP3D_VCSDKVER=8.1 -IF "%LP3D_VCTOOLSET%" == "" SET LP3D_VCTOOLSET=v140 +IF "%LP3D_VCTOOLSET%" == "" SET LP3D_VCTOOLSET=v140_xp IF "%LP3D_VCVARSALL_VER%" == "" SET LP3D_VCVARSALL_VER=-vcvars_ver=14.0 IF "%LP3D_VALID_7ZIP%" =="" SET LP3D_VALID_7ZIP=0 @@ -344,7 +344,7 @@ IF %1==x64 ( ) ) ELSE ( SET LP3D_VCSDKVER=8.1 - SET LP3D_VCTOOLSET=v140 + SET LP3D_VCTOOLSET=v140_xp SET LP3D_VCVARSALL_VER=-vcvars_ver=14.0 ) ECHO.