diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-24 16:34:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-24 16:34:17 +0200 |
commit | 24c93c8860e3a292f55a98f0b2da31a3e90f94fb (patch) | |
tree | f475b4425dbee3930f73f117a239c0b325b1ace8 | |
parent | 5b62fbe5117dcee4e0a161825d2415144716ee72 (diff) |
Update to zig 0.13.0
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | build.zig | 4 |
3 files changed, 4 insertions, 3 deletions
@@ -1,2 +1,3 @@ zig-cache/ +.zig-cache/ zig-out/ @@ -1 +1 @@ -[mgl](https://git.dec05eba.com/mgl/about/) build for zig. See [mgl-zig-example](https://git.dec05eba.com/mgl-zig-example/about) for an example on how to use this. +[mgl](https://git.dec05eba.com/mgl/about/) build for zig 0.13.0. See [mgl-zig-example](https://git.dec05eba.com/mgl-zig-example/about) for an example on how to use this. @@ -37,12 +37,12 @@ pub fn build(b: *std.Build) void { "-Wextra", }, }); - lib.addIncludePath(.{ .path = "depends/mgl/include" }); + lib.addIncludePath(b.path("depends/mgl/include")); lib.linkSystemLibrary("x11"); lib.linkSystemLibrary("xrender"); lib.linkSystemLibrary("xrandr"); lib.linkLibC(); - lib.installHeadersDirectory(.{ .path = "depends/mgl/include" }, ".", .{}); + lib.installHeadersDirectory(b.path("depends/mgl/include"), ".", .{}); lib.want_lto = optimize != std.builtin.OptimizeMode.Debug; b.installArtifact(lib); |