Skip to content

Commit 48450bd

Browse files
committed
add missing link libs for windows
1 parent c6111e7 commit 48450bd

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

build.zig

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ pub fn build(b: *std.Build) !void {
2626
superhtml.addImport("scripty", scripty.module("scripty"));
2727
superhtml.addImport("tracy", tracy.module("tracy"));
2828

29+
if (target.result.os.tag == .windows) {
30+
superhtml.linkSystemLibrary("advapi32", .{});
31+
32+
// Remove this if/when known-folders adds this:
33+
superhtml.linkSystemLibrary("shell32", .{});
34+
superhtml.linkSystemLibrary("ole32", .{});
35+
}
36+
2937
if (enable_tracy) {
3038
if (target.result.os.tag == .windows) {
3139
superhtml.linkSystemLibrary("dbghelp", .{});
32-
superhtml.linkSystemLibrary("ws2_32", .{});
3340
}
34-
3541
// superhtml.addObjectFile(b.path("libTracyClient.a"));
3642
//
3743
superhtml.linkSystemLibrary("TracyClient", .{});

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
.lazy = true,
1111
},
1212
.known_folders = .{
13-
.url = "git+https://github.com/ziglibs/known-folders#aa24df42183ad415d10bc0a33e6238c437fc0f59",
14-
.hash = "known_folders-0.0.0-Fy-PJtLDAADGDOwYwMkVydMSTp_aN-nfjCZw6qPQ2ECL",
13+
.url = "git+https://github.com/ziglibs/known-folders#ab5cf5feb936fa3b72c95d3ad0c0c67791937ba1",
14+
.hash = "known_folders-0.0.0-Fy-PJtTTAADUOhGKM0sxzG4eMkNQxRvx9e5dfHVyaeA3",
1515
},
1616
.tracy = .{
1717
.url = "git+https://github.com/kristoff-it/tracy#67d2d89e351048c76fc6d161e0ac09d8a831dc60",

0 commit comments

Comments
 (0)