pkg/highway: requires libc headers

pull/12402/head
Mitchell Hashimoto 2026-04-23 20:48:23 -07:00
parent f3f9af6129
commit 3c0b976d07
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 5 additions and 0 deletions

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