make this work for x86_64, aarch64, and riscv64

This commit is contained in:
Emil Lerch 2025-09-09 20:11:59 -07:00
parent 41600d4ef5
commit da2b091374
Signed by: lobo
GPG key ID: A7B62D657EF764F8
2 changed files with 2 additions and 6 deletions

View file

@ -3,9 +3,3 @@ zig = "0.15.1"
zls = "0.15.0"
pre-commit = "latest"
"ubi:DonIsaac/zlint" = "latest"
[hooks]
enter = 'echo use "nix develop" if you want to build'
[settings]
experimental = true

View file

@ -185,6 +185,8 @@ pub fn build(b: *std.Build) void {
},
.flags = &.{
"-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_STATIC",
"-DBUILD_STATIC_ONLY",