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
02c55fdfe7
commit
1401071b92
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue