From 35bb823131a93d7407e79897d4cd20ae2a98ca54 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 13 Feb 2023 09:13:36 -0700 Subject: [PATCH] build.zig: builder.zig_exe is not relative --- build.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.zig b/build.zig index e121850221..faf14cc405 100644 --- a/build.zig +++ b/build.zig @@ -40,12 +40,11 @@ pub fn build(b: *std.Build) !void { }); docgen_exe.single_threaded = single_threaded; - const rel_zig_exe = try b.build_root.join(b.allocator, &.{b.zig_exe}); const langref_out_path = try b.cache_root.join(b.allocator, &.{"langref.html"}); const docgen_cmd = docgen_exe.run(); docgen_cmd.addArgs(&[_][]const u8{ "--zig", - rel_zig_exe, + b.zig_exe, "doc" ++ fs.path.sep_str ++ "langref.html.in", langref_out_path, });