From 24c93c8860e3a292f55a98f0b2da31a3e90f94fb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 24 Jul 2024 16:34:17 +0200 Subject: Update to zig 0.13.0 --- .gitignore | 1 + README.md | 2 +- build.zig | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e73c965..8be35bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ zig-cache/ +.zig-cache/ zig-out/ diff --git a/README.md b/README.md index 849a465..c76196a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/build.zig b/build.zig index 2e10ea5..e1411cd 100644 --- a/build.zig +++ b/build.zig @@ -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); -- cgit v1.2.3