aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-09-12 12:40:16 -0400
committerGitHub <noreply@github.com>2018-09-12 12:40:16 -0400
commit0cfd019377c4e91924d8f57a4c7400a2d62f8751 (patch)
tree9c62a0569648d505233743409fade82e0f36b172 /build.zig
parent7bd8a2695b5fe0b1993003c0c6e02cb99de5ab33 (diff)
parent3a49d115cf38154f0094d9615334529890059006 (diff)
downloadzig-0cfd019377c4e91924d8f57a4c7400a2d62f8751.tar.gz
zig-0cfd019377c4e91924d8f57a4c7400a2d62f8751.zip
Merge pull request #1494 from ziglang/stage1-caching
stage1 caching
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index d4a159e5e6..e886377139 100644
--- a/build.zig
+++ b/build.zig
@@ -16,11 +16,12 @@ pub fn build(b: *Builder) !void {
var docgen_exe = b.addExecutable("docgen", "doc/docgen.zig");
const rel_zig_exe = try os.path.relative(b.allocator, b.build_root, b.zig_exe);
+ const langref_out_path = os.path.join(b.allocator, b.cache_root, "langref.html") catch unreachable;
var docgen_cmd = b.addCommand(null, b.env_map, [][]const u8{
docgen_exe.getOutputPath(),
rel_zig_exe,
"doc" ++ os.path.sep_str ++ "langref.html.in",
- os.path.join(b.allocator, b.cache_root, "langref.html") catch unreachable,
+ langref_out_path,
});
docgen_cmd.step.dependOn(&docgen_exe.step);