From ce5100cbf384d441f7ccfd0269938616a345722f Mon Sep 17 00:00:00 2001 From: "Herman S." <429230+has207@users.noreply.github.com> Date: Sat, 29 Nov 2025 14:27:01 +0900 Subject: [PATCH] [Build] Hack to support VS 2026 preview in the build Simply force version detection to id it as 2022 for now until there is an official target for vs2026 --- xenia-build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xenia-build.py b/xenia-build.py index 85189a690..b7589419e 100755 --- a/xenia-build.py +++ b/xenia-build.py @@ -547,6 +547,10 @@ def run_platform_premake(target_os_override=None, cc=None, devenv=None): devenv = "xcode4" elif target_os == "windows": vs_version = os.getenv("VSVERSION", VSVERSION_MINIMUM) + # VS 2026 preview reports as vs18, map to vs2022 for premake + # as it doesn't yet have a vs2026 target + if vs_version == "18": + vs_version = "2022" devenv = f"vs{vs_version}" elif target_os == "android": devenv = "androidndk"