Upgrade to zig 0.15.1
This commit is contained in:
parent
8304734230
commit
5f53ffc3ad
2 changed files with 15 additions and 13 deletions
22
build.zig
22
build.zig
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue