From 3c0b976d071dab71df687f371c1de0a1eca60b3c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 23 Apr 2026 20:48:23 -0700 Subject: [PATCH] pkg/highway: requires libc headers --- pkg/highway/build.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/highway/build.zig b/pkg/highway/build.zig index 19b42da50..7f9304d91 100644 --- a/pkg/highway/build.zig +++ b/pkg/highway/build.zig @@ -21,6 +21,11 @@ pub fn build(b: *std.Build) !void { }), .linkage = .static, }); + + // Our highway package is free of libc at runtime (uses no symbols) + // but does require libc headers at compile time. + lib.linkLibC(); + lib.addIncludePath(b.path("src/cpp")); if (upstream_) |upstream| { lib.addIncludePath(upstream.path(""));