From 1401071b92340dd7466d220c820891e6434d1912 Mon Sep 17 00:00:00 2001 From: superp00t Date: Fri, 28 Jun 2024 00:11:20 -0400 Subject: [PATCH] fix(build): fix zig detection script --- zig/system.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zig/system.zig b/zig/system.zig index 46e0897..c91f910 100644 --- a/zig/system.zig +++ b/zig/system.zig @@ -17,6 +17,12 @@ pub fn add_defines(b: *std.Build, compile_step: *std.Build.Step.Compile) void { .x86_64 => { is32Bits = false; is64Bits = true; + }, + + // TODO: handle other common architectures + else => { + is32Bits = false; + is64Bits = true; } } @@ -44,6 +50,10 @@ pub fn add_defines(b: *std.Build, compile_step: *std.Build.Step.Compile) void { .linux => { isLinux = true; + }, + + else => { + isLinux = true; } }