diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2024-01-01 22:48:38 -0600 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2024-01-01 22:55:15 -0600 |
| commit | 3aba3abbcd6a3e32ec9a0bd95529f9e19399c662 (patch) | |
| tree | b4f631e7bf4156d186cd57a128edf8aa24bb99c1 | |
| parent | a128a574a4c19d0d33337449814b76b95953da68 (diff) | |
| download | river-3aba3abbcd6a3e32ec9a0bd95529f9e19399c662.tar.gz river-3aba3abbcd6a3e32ec9a0bd95529f9e19399c662.tar.xz | |
build: require at least wlroots 0.17.1
There are enough bugs fixed in 0.17.1 which are relevant to river that I
think it's worthwhile to refuse to compile against 0.17.1.
| -rw-r--r-- | .builds/alpine.yml | 2 | ||||
| -rw-r--r-- | .builds/archlinux.yml | 2 | ||||
| -rw-r--r-- | .builds/freebsd.yml | 2 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | river/main.zig | 6 |
5 files changed, 10 insertions, 4 deletions
diff --git a/.builds/alpine.yml b/.builds/alpine.yml index a33be10..3ab38c4 100644 --- a/.builds/alpine.yml +++ b/.builds/alpine.yml @@ -34,7 +34,7 @@ tasks: cd .. cd wlroots - git checkout 0.17.0 + git checkout 0.17.1 meson setup build --auto-features=enabled -Drenderers=gles2 -Dexamples=false \ -Dwerror=false -Db_ndebug=false -Dxcb-errors=disabled --prefix /usr sudo ninja -C build/ install diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml index f4dc688..7b89bd5 100644 --- a/.builds/archlinux.yml +++ b/.builds/archlinux.yml @@ -32,7 +32,7 @@ tasks: cd .. cd wlroots - git checkout 0.17.0 + git checkout 0.17.1 meson setup build --auto-features=enabled -Drenderers=gles2 -Dexamples=false \ -Dwerror=false -Db_ndebug=false --prefix /usr sudo ninja -C build/ install diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index 367f5c0..e1b3e81 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -36,7 +36,7 @@ tasks: cd .. cd wlroots - git checkout 0.17.0 + git checkout 0.17.1 meson setup build --auto-features=enabled -Drenderers=gles2 -Dexamples=false \ -Dwerror=false -Db_ndebug=false --prefix /usr sudo ninja -C build/ install @@ -38,7 +38,7 @@ distribution. - [zig](https://ziglang.org/download/) 0.11 - wayland - wayland-protocols -- [wlroots](https://gitlab.freedesktop.org/wlroots/wlroots) 0.17 +- [wlroots](https://gitlab.freedesktop.org/wlroots/wlroots) 0.17.1 - xkbcommon - libevdev - pixman diff --git a/river/main.zig b/river/main.zig index 54e5e77..81b558c 100644 --- a/river/main.zig +++ b/river/main.zig @@ -29,6 +29,12 @@ const util = @import("util.zig"); const Server = @import("Server.zig"); +comptime { + if (wlr.version.major != 0 or wlr.version.minor != 17 or wlr.version.micro < 1) { + @compileError("river requires at least wlroots version 0.17.1 due to bugs in wlroots 0.17.0"); + } +} + const usage: []const u8 = \\usage: river [options] \\ |
