pkg/highway: requires libc headers

This commit is contained in:
Mitchell Hashimoto
2026-04-23 20:48:23 -07:00
parent f3f9af6129
commit 3c0b976d07

View File

@@ -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(""));