We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63284fe commit c512af1Copy full SHA for c512af1
build.zig
@@ -73,6 +73,7 @@ fn addLinkerFlags(
73
) !void {
74
const webui_target = webui.rootModuleTarget();
75
const is_windows = webui_target.os.tag == .windows;
76
+ const is_darwin = webui_target.os.tag == .macos;
77
const debug = webui.root_module.optimize.? == .Debug;
78
79
// Prepare compiler flags.
@@ -108,7 +109,7 @@ fn addLinkerFlags(
108
109
webui.linkLibC();
110
webui.addIncludePath(b.path("include"));
111
webui.installHeader(b.path("include/webui.h"), "webui.h");
- if (webui_target.isDarwin()) {
112
+ if (is_darwin) {
113
webui.addCSourceFile(.{
114
.file = b.path("src/webview/wkwebview.m"),
115
.flags = &.{},
0 commit comments