From 674a30a99ec29cd85a1a7c071d686747f0c63821 Mon Sep 17 00:00:00 2001 From: moderation Date: Tue, 24 Oct 2023 08:53:03 -0700 Subject: [PATCH] Update for latest Zig. Signed-off-by: moderation --- build.zig.zon | 1 + src/build/ScdocStep.zig | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 0232e72..01ecaa4 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,4 +1,5 @@ .{ .name = "libxev", + .paths = .{""}, .version = "0.0.0", } diff --git a/src/build/ScdocStep.zig b/src/build/ScdocStep.zig index cfa79dc..6bd33b6 100644 --- a/src/build/ScdocStep.zig +++ b/src/build/ScdocStep.zig @@ -59,7 +59,7 @@ fn make(step: *std.build.Step, progress: *std.Progress.Node) !void { "rm -f {[path]s}/* && mkdir -p {[path]s}", .{ .path = self.out_path }, ); - _ = self.builder.exec(&[_][]const u8{ "sh", "-c", command }); + _ = self.builder.run(&[_][]const u8{ "sh", "-c", command }); } // Find all our man pages which are in our src path ending with ".scd". @@ -88,7 +88,7 @@ fn make(step: *std.build.Step, progress: *std.Progress.Node) !void { "scdoc < {s} > {s}", .{ src, dst }, ); - _ = self.builder.exec(&[_][]const u8{ "sh", "-c", command }); + _ = self.builder.run(&[_][]const u8{ "sh", "-c", command }); } }