fix(build): fix zig detection script

This commit is contained in:
phaneron 2024-06-28 00:05:36 -04:00
parent bc2defabed
commit ec4766d5c6

View file

@ -1,6 +1,6 @@
const std = @import("std"); const std = @import("std");
pub fn add_defines(b: *std.Build, compile_step: *std.build.Step.Compile) { pub fn add_defines(b: *std.Build, compile_step: *std.build.Step.Compile) void {
const target = b.standardTargetOptions(.{}); const target = b.standardTargetOptions(.{});
const t = target.result; const t = target.result;
@ -83,6 +83,8 @@ pub fn add_defines(b: *std.Build, compile_step: *std.build.Step.Compile) {
var system_version = "9999"; var system_version = "9999";
if (isWindows) { if (isWindows) {
system_version = WHOA_WIN_UNK;
switch (t.os.semver.min.major) { switch (t.os.semver.min.major) {
5 => { 5 => {
system_version = WHOA_WIN_XP; system_version = WHOA_WIN_XP;