aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-06-08 16:18:56 +0200
committerdec05eba <dec05eba@protonmail.com>2024-06-08 16:18:56 +0200
commit5b62fbe5117dcee4e0a161825d2415144716ee72 (patch)
tree8d1ad79e5a47438120ee87cf42844bfb1fde771e
parent131d036cea9113821fd0db565dc32d2e19e52886 (diff)
Update to zig 0.13.0, update mgl
-rw-r--r--build.zig6
m---------depends/mgl0
2 files changed, 3 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 5c0a74c..2e10ea5 100644
--- a/build.zig
+++ b/build.zig
@@ -8,6 +8,8 @@ pub fn build(b: *std.Build) void {
.name = "mgl-zig",
.target = target,
.optimize = optimize,
+ .strip = optimize != std.builtin.OptimizeMode.Debug,
+ .single_threaded = true,
});
lib.addCSourceFiles(.{
@@ -40,10 +42,8 @@ pub fn build(b: *std.Build) void {
lib.linkSystemLibrary("xrender");
lib.linkSystemLibrary("xrandr");
lib.linkLibC();
- lib.installHeadersDirectory("depends/mgl/include", ".");
- lib.strip = optimize != std.builtin.OptimizeMode.Debug;
+ lib.installHeadersDirectory(.{ .path = "depends/mgl/include" }, ".", .{});
lib.want_lto = optimize != std.builtin.OptimizeMode.Debug;
- lib.single_threaded = true;
b.installArtifact(lib);
}
diff --git a/depends/mgl b/depends/mgl
-Subproject 5490e519cfb52d1cbb63752cee277ae01cd9e3f
+Subproject 1a1ce3f6733b524122bdfe33e4b662803a69816