From 701cb9f2f5b757c28a193ceaa6bdc388386b05c3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 24 Jun 2023 15:34:17 -0700 Subject: [PATCH] build: fix race condition in build on creating 'share' dir --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.zig b/build.zig index 36b047756..b846894b7 100644 --- a/build.zig +++ b/build.zig @@ -324,6 +324,10 @@ pub fn build(b: *std.Build) !void { run_step.addFileSourceArg(src_source); _ = run_step.captureStdErr(); // so we don't see stderr + // Depend on the terminfo source install step so that Zig build + // creates the "share" directory for us. + run_step.step.dependOn(&src_install.step); + { const copy_step = RunStep.create(b, "copy terminfo db"); copy_step.addArgs(&.{ "cp", "-R" });