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 5a710c2 commit a44283bCopy full SHA for a44283b
build.zig
@@ -73,7 +73,6 @@ fn addLinkerFlags(
73
) !void {
74
const webui_target = webui.rootModuleTarget();
75
const is_windows = webui_target.os.tag == .windows;
76
-
77
const debug = webui.root_module.optimize.? == .Debug;
78
79
// Prepare compiler flags.
@@ -86,6 +85,9 @@ fn addLinkerFlags(
86
85
"-Wno-error=date-time",
87
};
88
+ if (debug) {
89
+ webui.root_module.addCMacro("WEBUI_LOG", "");
90
+ }
91
webui.addCSourceFile(.{
92
.file = b.path("src/webui.c"),
93
.flags = if (enable_tls) tls_flags else no_tls_flags,
0 commit comments