Skip to content

Commit f447673

Browse files
authored
add vs2026 win7 support (#3079)
1 parent 591cec7 commit f447673

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

premake5.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ newoption { trigger = "vorbis-lib-dir", category = "YGOPro - miniaudio", descrip
126126
newoption { trigger = "ogg-include-dir", category = "YGOPro - miniaudio", description = "", value = "PATH" }
127127
newoption { trigger = "ogg-lib-dir", category = "YGOPro - miniaudio", description = "", value = "PATH" }
128128

129+
newoption { trigger = "vs2026-win7-support", category = "YGOPro", description = "Enable Windows 7 support (toolset v143) for Visual Studio 2026" }
130+
129131
newoption { trigger = "mac-arm", category = "YGOPro", description = "Cross Compile for Apple Silicon Mac" }
130132
newoption { trigger = "mac-intel", category = "YGOPro", description = "Cross Compile for Intel Mac" }
131133

@@ -292,6 +294,10 @@ if USE_SIMD == "avx2" or USE_SIMD == "neon" then
292294
USE_SIMD = "best"
293295
end
294296

297+
if os.istarget("windows") and GetParam("vs2026-win7-support") then
298+
WIN7_SUPPORT = true
299+
end
300+
295301
if os.istarget("macosx") then
296302
if GetParam("mac-arm") then
297303
MAC_ARM = true
@@ -320,6 +326,11 @@ workspace "YGOPro"
320326
startproject "YGOPro"
321327
defines { "WINVER=0x0601" } -- WIN7
322328

329+
if WIN7_SUPPORT then
330+
filter { "system:windows", "action:vs2026" }
331+
toolset "v143"
332+
end
333+
323334
filter { "system:windows", "action:vs*" }
324335
platforms { "Win32", "x64", "ARM64" }
325336
defaultplatform "x64"

0 commit comments

Comments
 (0)