Skip to content

Commit fead245

Browse files
committed
build: fix windows debug builds
1 parent e398fef commit fead245

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ pub fn build(b: *std.Build) void {
5555
lib.linkSystemLibrary("dbghelp");
5656
lib.linkSystemLibrary("ole32");
5757
lib.linkSystemLibrary("shell32");
58+
if (optimize == .Debug)
59+
lib.linkSystemLibrary("ucrtbased");
5860
lib.addCSourceFiles(.{
5961
.root = src_root,
6062
.files = win_sources,

0 commit comments

Comments
 (0)