Skip to content

Commit a3e4015

Browse files
committed
[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
1 parent 10bfc92 commit a3e4015

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

xenia-build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ def run_platform_premake(target_os_override=None, cc=None, devenv=None):
547547
devenv = "xcode4"
548548
elif target_os == "windows":
549549
vs_version = os.getenv("VSVERSION", VSVERSION_MINIMUM)
550+
# VS 2026 preview reports as vs18, map to vs2022 for premake
551+
# as it doesn't yet have a vs2026 target
552+
if vs_version == "18":
553+
vs_version = "2022"
550554
devenv = f"vs{vs_version}"
551555
elif target_os == "android":
552556
devenv = "androidndk"

0 commit comments

Comments
 (0)