glue mimalloc with netsurf C libs

This commit is contained in:
Pierre Tachoire
2024-04-09 16:18:48 +02:00
parent dad51a4179
commit 9363acf4ec
3 changed files with 72 additions and 0 deletions

View File

@@ -152,6 +152,10 @@ fn common(
) !void {
try jsruntime_pkgs.add(step, options);
linkNetSurf(step);
// link mimalloc
step.addObjectFile(.{ .path = "vendor/mimalloc/out/libmimalloc.a" });
step.addIncludePath(.{ .path = "vendor/mimalloc/include" });
}
fn linkNetSurf(step: *std.build.LibExeObjStep) void {