Skip to content

Commit c512af1

Browse files
committed
fxi: zig master change
1 parent 63284fe commit c512af1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ fn addLinkerFlags(
7373
) !void {
7474
const webui_target = webui.rootModuleTarget();
7575
const is_windows = webui_target.os.tag == .windows;
76+
const is_darwin = webui_target.os.tag == .macos;
7677
const debug = webui.root_module.optimize.? == .Debug;
7778

7879
// Prepare compiler flags.
@@ -108,7 +109,7 @@ fn addLinkerFlags(
108109
webui.linkLibC();
109110
webui.addIncludePath(b.path("include"));
110111
webui.installHeader(b.path("include/webui.h"), "webui.h");
111-
if (webui_target.isDarwin()) {
112+
if (is_darwin) {
112113
webui.addCSourceFile(.{
113114
.file = b.path("src/webview/wkwebview.m"),
114115
.flags = &.{},

0 commit comments

Comments
 (0)