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 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 wayland = b.createModule(.{ .root_source_file = scanner.result });
@ -25,12 +24,12 @@ pub fn build(b: *std.Build) void {
const exe = b.addExecutable(.{
.name = "beansprout",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.strip = strip,
.use_llvm = llvm,
.use_lld = llvm,
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.strip = strip,
}),
});
exe.pie = pie;
@ -70,9 +69,12 @@ pub fn build(b: *std.Build) void {
// check step used for zls to give comptime info
const exe_check = b.addExecutable(.{
.name = "beansprout",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.strip = strip,
}),
});
exe_check.root_module.addImport("wayland", wayland);