Commit 936c1fa
Eric Bower
·
2026-05-16 10:47:25 -0400 EDT
parent 0a5a2a9
fix: statically link against musl
1 files changed,
+8,
-1
+8,
-1
| ... | ... | @@ -11,7 +11,13 @@ const macos_targets: []const std.Target.Query = &.{ | |
| 11 | 11 | }; | |
| 12 | 12 | ||
| 13 | 13 | pub fn build(b: *std.Build) void { | |
| 14 | - | const target = b.standardTargetOptions(.{}); | |
| 14 | + | const target = b.standardTargetOptions(.{ | |
| 15 | + | .default_target = .{ | |
| 16 | + | .cpu_arch = .x86_64, | |
| 17 | + | .os_tag = .linux, | |
| 18 | + | .abi = .musl, | |
| 19 | + | }, | |
| 20 | + | }); | |
| 15 | 21 | const optimize = b.standardOptimizeOption(.{}); | |
| 16 | 22 | const version = b.option([]const u8, "version", "Version string for release") orelse | |
| 17 | 23 | @as([]const u8, @import("build.zig.zon").version); |