Upgrade to zig 0.15.1

This commit is contained in:
Ben Buhse 2025-10-02 17:13:32 -05:00
commit 5f53ffc3ad
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
2 changed files with 15 additions and 13 deletions

View file

@ -11,7 +11,6 @@ pub fn build(b: *std.Build) void {
const strip = b.option(bool, "strip", "Omit debug information") orelse false; const strip = b.option(bool, "strip", "Omit debug information") orelse false;
const pie = b.option(bool, "pie", "Build a Position Independent Executable") orelse false; const pie = b.option(bool, "pie", "Build a Position Independent Executable") orelse false;
const llvm = !(b.option(bool, "no-llvm", "(expirimental) Use non-LLVM x86 Zig backend") orelse false);
const scanner = Scanner.create(b, .{}); const scanner = Scanner.create(b, .{});
const wayland = b.createModule(.{ .root_source_file = scanner.result }); const wayland = b.createModule(.{ .root_source_file = scanner.result });
@ -25,12 +24,12 @@ pub fn build(b: *std.Build) void {
const exe = b.addExecutable(.{ const exe = b.addExecutable(.{
.name = "beansprout", .name = "beansprout",
.root_source_file = b.path("src/main.zig"), .root_module = b.createModule(.{
.target = target, .root_source_file = b.path("src/main.zig"),
.optimize = optimize, .target = target,
.strip = strip, .optimize = optimize,
.use_llvm = llvm, .strip = strip,
.use_lld = llvm, }),
}); });
exe.pie = pie; exe.pie = pie;
@ -70,9 +69,12 @@ pub fn build(b: *std.Build) void {
// check step used for zls to give comptime info // check step used for zls to give comptime info
const exe_check = b.addExecutable(.{ const exe_check = b.addExecutable(.{
.name = "beansprout", .name = "beansprout",
.root_source_file = b.path("src/main.zig"), .root_module = b.createModule(.{
.target = target, .root_source_file = b.path("src/main.zig"),
.optimize = optimize, .target = target,
.optimize = optimize,
.strip = strip,
}),
}); });
exe_check.root_module.addImport("wayland", wayland); exe_check.root_module.addImport("wayland", wayland);

View file

@ -5,12 +5,12 @@
.fingerprint = 0x145dac71c283d187, // Changing this has security and trust implications. .fingerprint = 0x145dac71c283d187, // Changing this has security and trust implications.
.minimum_zig_version = "0.14.0", .minimum_zig_version = "0.15.1",
.dependencies = .{ .dependencies = .{
.wayland = .{ .wayland = .{
.url = "https://codeberg.org/ifreund/zig-wayland/archive/v0.3.0.tar.gz", .url = "https://codeberg.org/ifreund/zig-wayland/archive/v0.4.0.tar.gz",
.hash = "wayland-0.3.0-lQa1kjPIAQDmhGYpY-zxiRzQJFHQ2VqhJkQLbKKdt5wl", .hash = "wayland-0.4.0-lQa1khbMAQAsLS2eBR7M5lofyEGPIbu2iFDmoz8lPC27",
}, },
}, },