Skip to content

Commit

Permalink
build: link onecore on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dweiller committed Mar 25, 2024
1 parent 7e2a5e3 commit 9359537
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ pub fn build(b: *std.Build) void {
.link_libc = true,
});
tests.root_module.addImport("build_options", zimalloc_options);
if (target.result.os.tag == .windows) {
tests.linkSystemLibrary("onecore.lib");
}

const tests_run = b.addRunArtifact(tests);

Expand Down

0 comments on commit 9359537

Please sign in to comment.