fix: zig cross compile from linux to windows error

This commit is contained in:
jinzhongjia 2024-07-08 08:57:19 +08:00
parent 4f6fbc58d0
commit f888f15dbd

View File

@ -96,7 +96,7 @@ fn addLinkerFlags(b: *Build, webui: *Compile, enable_tls: bool) !void {
webui.linkFramework("WebKit");
} else if (is_windows) {
webui.linkSystemLibrary("ws2_32");
webui.linkSystemLibrary("Ole32");
webui.linkSystemLibrary("ole32");
if (webui_target.abi == .msvc) {
webui.linkSystemLibrary("Advapi32");
webui.linkSystemLibrary("Shell32");