Skip to content

Commit e97515b

Browse files
committed
manually set windows linker inputs
See ziglang/zig#24146
1 parent c6448db commit e97515b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ pub fn build(b: *std.Build) void {
2828
.optimize = optimize,
2929
.strip = strip,
3030
});
31+
if (target.result.os.tag == .windows) {
32+
mod.linkSystemLibrary("shell32", .{});
33+
mod.linkSystemLibrary("ole32", .{});
34+
}
3135

3236
const unit_tests = b.addTest(.{
3337
.root_module = mod,

0 commit comments

Comments
 (0)