aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2023-12-05 11:37:15 +0100
committerIsaac Freund <mail@isaacfreund.com>2023-12-05 11:37:15 +0100
commit093b85d23445acd8afc22595f06378aeca2abb43 (patch)
tree77ec5255d9dd5685179395460fc14daa403f5fe6 /build.zig
parentcf06498f22b47737b44971d74d09446e80c35858 (diff)
downloadriver-093b85d23445acd8afc22595f06378aeca2abb43.tar.gz
river-093b85d23445acd8afc22595f06378aeca2abb43.tar.xz
build: fix comment on scanner.generate() versions
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig7
1 files changed, 5 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 0af5765..faa39c1 100644
--- a/build.zig
+++ b/build.zig
@@ -97,8 +97,11 @@ pub fn build(b: *Build) !void {
scanner.addCustomProtocol("protocol/wlr-layer-shell-unstable-v1.xml");
scanner.addCustomProtocol("protocol/wlr-output-power-management-unstable-v1.xml");
- // These must be manually kept in sync with the versions wlroots supports
- // until wlroots gives the option to request a specific version.
+ // Some of these versions may be out of date with what wlroots implements.
+ // This is not a problem in practice though as long as river successfully compiles.
+ // These versions control Zig code generation and have no effect on anything internal
+ // to wlroots. Therefore, the only thnig that can happen due to a version being too
+ // old is that river fails to compile.
scanner.generate("wl_compositor", 4);
scanner.generate("wl_subcompositor", 1);
scanner.generate("wl_shm", 1);