make this work for x86_64, aarch64, and riscv64
This commit is contained in:
parent
41600d4ef5
commit
da2b091374
2 changed files with 2 additions and 6 deletions
|
@ -3,9 +3,3 @@ zig = "0.15.1"
|
||||||
zls = "0.15.0"
|
zls = "0.15.0"
|
||||||
pre-commit = "latest"
|
pre-commit = "latest"
|
||||||
"ubi:DonIsaac/zlint" = "latest"
|
"ubi:DonIsaac/zlint" = "latest"
|
||||||
|
|
||||||
[hooks]
|
|
||||||
enter = 'echo use "nix develop" if you want to build'
|
|
||||||
|
|
||||||
[settings]
|
|
||||||
experimental = true
|
|
||||||
|
|
|
@ -185,6 +185,8 @@ pub fn build(b: *std.Build) void {
|
||||||
},
|
},
|
||||||
.flags = &.{
|
.flags = &.{
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE",
|
||||||
|
"-D_LARGEFILE64_SOURCE", // Enable 64-bit file operations
|
||||||
|
"-D_FILE_OFFSET_BITS=64", // Use 64-bit file offsets
|
||||||
"-DALSA_LIBRARY_BUILD",
|
"-DALSA_LIBRARY_BUILD",
|
||||||
"-DALSA_STATIC",
|
"-DALSA_STATIC",
|
||||||
"-DBUILD_STATIC_ONLY",
|
"-DBUILD_STATIC_ONLY",
|
||||||
|
|
Loading…
Add table
Reference in a new issue