diff --git a/.gitignore b/.gitignore index 93c1b5f43..cc3949d66 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /zig-cache /zig-out +/.zig-cache diff --git a/build.zig b/build.zig index c0fe96530..e46058756 100644 --- a/build.zig +++ b/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); -pub fn build(b: *std.build.Builder) void { +pub fn build(b: *std.Build) void { const lib = b.addStaticLibrary(.{ .name = "z", .target = b.standardTargetOptions(.{}), @@ -27,7 +27,7 @@ pub fn build(b: *std.build.Builder) void { }, .flags = &.{"-std=c89"}, }); - lib.installHeader("zconf.h", "zconf.h"); - lib.installHeader("zlib.h", "zlib.h"); + lib.installHeader(b.path("zconf.h"), "zconf.h"); + lib.installHeader(b.path("zlib.h"), "zlib.h"); b.installArtifact(lib); }