Skip to content

Commit

Permalink
update to Zig 2024.05
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Jun 2, 2024
1 parent 84ff91f commit 122b433
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Zig stuff
zig-*
.zig-cache
8 changes: 4 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ pub fn build(b: *std.Build) void {
});
addPaths(&lib.root_module); // just for testing
lib.linkLibC();
lib.installHeadersDirectory("include", ".");
lib.installHeadersDirectory(b.path("include"), ".", .{});
b.installArtifact(lib);
}

pub fn addPaths(mod: *std.Build.Module) void {
mod.addSystemFrameworkPath(.{ .path = sdkPath("/Frameworks") });
mod.addSystemIncludePath(.{ .path = sdkPath("/include") });
mod.addLibraryPath(.{ .path = sdkPath("/lib") });
mod.addSystemFrameworkPath(.{ .cwd_relative = sdkPath("/Frameworks") });
mod.addSystemIncludePath(.{ .cwd_relative = sdkPath("/include") });
mod.addLibraryPath(.{ .cwd_relative = sdkPath("/lib") });
}

fn sdkPath(comptime suffix: []const u8) []const u8 {
Expand Down

0 comments on commit 122b433

Please sign in to comment.