aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-06-17 14:28:42 +0200
committerdec05eba <dec05eba@protonmail.com>2024-06-17 14:28:42 +0200
commit8f012f3a7dad281c08e52aacda666507523583e5 (patch)
tree287f628cf8ec4f10083de32dc8d0c8baaf60bd5f /build.zig
parentfbfd12f35daa93b271cd0b64f341d681ff7ad430 (diff)
Make it compile with zig 0.13.0
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 353d4ba..8eefb26 100644
--- a/build.zig
+++ b/build.zig
@@ -9,17 +9,17 @@ pub fn build(b: *std.Build) void {
.root_source_file = .{ .path = "src/main.zig" },
.target = target,
.optimize = optimize,
+ .strip = optimize != std.builtin.OptimizeMode.Debug,
+ .single_threaded = true,
});
- const mgl_dep = b.anonymousDependency("depends/mgl-zig", @import("depends/mgl-zig/build.zig"), .{
+ const mgl_dep = b.dependency("mgl", .{
.target = target,
.optimize = optimize,
});
exe.linkLibrary(mgl_dep.artifact("mgl-zig"));
- exe.strip = optimize != std.builtin.OptimizeMode.Debug;
exe.want_lto = optimize != std.builtin.OptimizeMode.Debug;
- exe.single_threaded = true;
b.installArtifact(exe);