authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-13 09:13:36-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-13 09:13:36-07:00
log35bb823131a93d7407e79897d4cd20ae2a98ca54
tree16d57261041cfc2927aed694cff0bbc1cdab689c
parente9c7e539e486c28144b03e934fc96a20c004fbdc

build.zig: builder.zig_exe is not relative


1 files changed, 1 insertions(+), 2 deletions(-)

build.zig+1-2
...@@ -40,12 +40,11 @@ pub fn build(b: *std.Build) !void {...@@ -40,12 +40,11 @@ pub fn build(b: *std.Build) !void {
40 });40 });
41 docgen_exe.single_threaded = single_threaded;41 docgen_exe.single_threaded = single_threaded;
4242
43 const rel_zig_exe = try b.build_root.join(b.allocator, &.{b.zig_exe});
44 const langref_out_path = try b.cache_root.join(b.allocator, &.{"langref.html"});43 const langref_out_path = try b.cache_root.join(b.allocator, &.{"langref.html"});
45 const docgen_cmd = docgen_exe.run();44 const docgen_cmd = docgen_exe.run();
46 docgen_cmd.addArgs(&[_][]const u8{45 docgen_cmd.addArgs(&[_][]const u8{
47 "--zig",46 "--zig",
48 rel_zig_exe,47 b.zig_exe,
49 "doc" ++ fs.path.sep_str ++ "langref.html.in",48 "doc" ++ fs.path.sep_str ++ "langref.html.in",
50 langref_out_path,49 langref_out_path,
51 });50 });