Skip to content

Commit 62beb01

Browse files
committed
fix(build): addInstallArtifact needs empty options struct in Zig 0.15
1 parent 3f6b4b3 commit 62beb01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ pub fn build(b: *std.Build) void {
5656
.version = .{ .major = 2, .minor = 1, .patch = 0 },
5757
});
5858

59-
const install_lib = b.addInstallArtifact(c_abi_lib);
59+
b.installArtifact(c_abi_lib);
6060

6161
// Install C header alongside library
6262
const header_install = b.addInstallHeaderFile(b.path("src/c/gf16.h"), "gf16.h");
6363

6464
const shared_step = b.step("shared", "Build C-ABI shared library (libgoldenfloat)");
65-
shared_step.dependOn(&install_lib.step);
65+
shared_step.dependOn(&b.addInstallArtifact(c_abi_lib, .{}).step);
6666
shared_step.dependOn(&header_install.step);
6767

6868
// ─────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)