build: assert wlroots version at comptime
This will prevent people compiling river against the wrong wlroots version and wondering why it crashes.
This commit is contained in:
2
deps/zig-wlroots
vendored
2
deps/zig-wlroots
vendored
Submodule deps/zig-wlroots updated: c5f759484e...b270171f7b
@ -16,9 +16,17 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
const os = std.os;
|
const os = std.os;
|
||||||
|
|
||||||
const wlr = @import("wlroots");
|
const wlr = @import("wlroots");
|
||||||
|
|
||||||
|
// River requires wlroots 0.14
|
||||||
|
comptime {
|
||||||
|
assert(wlr.version.major == 0);
|
||||||
|
assert(wlr.version.minor == 14);
|
||||||
|
}
|
||||||
|
|
||||||
const build_options = @import("build_options");
|
const build_options = @import("build_options");
|
||||||
|
|
||||||
const c = @import("c.zig");
|
const c = @import("c.zig");
|
||||||
|
Reference in New Issue
Block a user