Skip to content

Commit 705368b

Browse files
committed
examples: fix windows linking
1 parent 3dcb648 commit 705368b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.zig

+3-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ fn makeExample(b: *std.Build, src: BuildInfo) !void {
8181
example.root_module.addImport("Qt", b.modules.get("Qt").?);
8282
example.addLibraryPath(.{ .path = "zig-cache/lib" });
8383

84-
if (example.rootModuleTarget().os.tag == .windows)
84+
if (example.rootModuleTarget().os.tag == .windows) {
8585
example.want_lto = false;
86-
example.linkSystemLibrary("DOtherSide");
86+
example.linkSystemLibrary2("DOtherSide.dll", .{ .use_pkg_config = .no });
87+
} else example.linkSystemLibrary("DOtherSide");
8788
example.linkLibC();
8889

8990
b.installArtifact(example);

0 commit comments

Comments
 (0)