aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-07-25 01:22:36 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-07-25 01:22:36 +0200
commit734521560bb65429dde8aef81a75a99d4a9072d7 (patch)
treeb2c6355fc6bb0e4e74e9a99f96becd272cb4573d /build.zig
parentc26d18647b9af89058e87249bcc754d8c979b663 (diff)
downloadriver-734521560bb65429dde8aef81a75a99d4a9072d7.tar.gz
river-734521560bb65429dde8aef81a75a99d4a9072d7.tar.xz
river: add custom wlroots log handler
This makes river's log output more consistent and will allow filtering by the wlroots scope in the future.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 48b049a..0dfdca3 100644
--- a/build.zig
+++ b/build.zig
@@ -211,6 +211,7 @@ fn addServerDeps(exe: *zbs.LibExeObjStep, scanner: *ScanProtocolsStep) void {
exe.linkSystemLibrary("wlroots");
exe.addPackagePath("flags", "common/flags.zig");
+ exe.addCSourceFile("river/wlroots_log_wrapper.c", &[_][]const u8{ "-std=c99", "-O2" });
// TODO: remove when zig issue #131 is implemented
scanner.addCSource(exe);