diff --git a/.gitignore b/.gitignore index ee7098f1..dca1103a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ zig-out/ -zig-cache/ +.zig-cache/ diff --git a/build.zig b/build.zig index 2d66efd1..bf6c71e3 100644 --- a/build.zig +++ b/build.zig @@ -15,12 +15,9 @@ pub fn build(b: *std.Build) void { "-DSPIRV_CROSS_C_API_HLSL", "-DSPIRV_CROSS_C_API_MSL", } }); - lib.addIncludePath(.{ .path = "." }); - lib.installHeadersDirectoryOptions(.{ - .source_dir = .{ .path = "" }, + lib.addIncludePath(b.path(".")); + lib.installHeadersDirectory(b.path(""), "spirv-cross", .{ .include_extensions = &.{".h"}, - .install_dir = .header, - .install_subdir = "spirv-cross", }); b.installArtifact(lib); }