mirror of
https://github.com/webui-dev/webui
synced 2025-03-28 21:13:17 +00:00
scm: Print webui logs in debug mode (#527)
This commit is contained in:
parent
5a710c29ce
commit
a44283b04d
@ -73,7 +73,6 @@ fn addLinkerFlags(
|
||||
) !void {
|
||||
const webui_target = webui.rootModuleTarget();
|
||||
const is_windows = webui_target.os.tag == .windows;
|
||||
|
||||
const debug = webui.root_module.optimize.? == .Debug;
|
||||
|
||||
// Prepare compiler flags.
|
||||
@ -86,6 +85,9 @@ fn addLinkerFlags(
|
||||
"-Wno-error=date-time",
|
||||
};
|
||||
|
||||
if (debug) {
|
||||
webui.root_module.addCMacro("WEBUI_LOG", "");
|
||||
}
|
||||
webui.addCSourceFile(.{
|
||||
.file = b.path("src/webui.c"),
|
||||
.flags = if (enable_tls) tls_flags else no_tls_flags,
|
||||
|
Loading…
x
Reference in New Issue
Block a user