From bc98057d669c3256c3820bb18ca88d166426da23 Mon Sep 17 00:00:00 2001 From: Manlio Perillo Date: Wed, 12 Apr 2023 18:41:40 +0200 Subject: Update the code to the new zig version Update the code to the breaking change in ziglang commit 60eabc0ec (std.Build.CompileStep: remove run() and install()) Update the zig version in the README.md file. --- build.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 84535d1..daa290d 100644 --- a/build.zig +++ b/build.zig @@ -575,9 +575,9 @@ pub fn build(b: *Build) !void { if (ex.C) { build_step.linkLibC(); } - build_step.install(); + b.installArtifact(build_step); - const run_step = build_step.run(); + const run_step = b.addRunArtifact(build_step); const test_step = b.step("test", b.fmt("Run {s} without checking output", .{ex.main_file})); if (ex.skip) { @@ -628,9 +628,9 @@ pub fn build(b: *Build) !void { if (ex.C) { build_step.linkLibC(); } - build_step.install(); + b.installArtifact(build_step); - const run_step = build_step.run(); + const run_step = b.addRunArtifact(build_step); if (ex.skip) { const skip_step = SkipStep.create(b, ex); test_step.dependOn(&skip_step.step); @@ -655,7 +655,7 @@ pub fn build(b: *Build) !void { }) catch unreachable; const build_step = b.addExecutable(.{ .name = base_name, .root_source_file = .{ .path = file_path } }); - build_step.install(); + b.installArtifact(build_step); const verify_stepn = ZiglingStep.create(b, ex, use_healed); verify_stepn.step.dependOn(prev_step); -- cgit v1.2.3