mirror of
https://github.com/thunderbrewhq/system.git
synced 2026-02-03 16:39:07 +00:00
fix(build): fix zig detection script
This commit is contained in:
parent
bc2defabed
commit
ec4766d5c6
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue