aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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