We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dcb648 commit 705368bCopy full SHA for 705368b
build.zig
@@ -81,9 +81,10 @@ fn makeExample(b: *std.Build, src: BuildInfo) !void {
81
example.root_module.addImport("Qt", b.modules.get("Qt").?);
82
example.addLibraryPath(.{ .path = "zig-cache/lib" });
83
84
- if (example.rootModuleTarget().os.tag == .windows)
+ if (example.rootModuleTarget().os.tag == .windows) {
85
example.want_lto = false;
86
- example.linkSystemLibrary("DOtherSide");
+ example.linkSystemLibrary2("DOtherSide.dll", .{ .use_pkg_config = .no });
87
+ } else example.linkSystemLibrary("DOtherSide");
88
example.linkLibC();
89
90
b.installArtifact(example);
0 commit comments