mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
build: fix race condition in build on creating 'share' dir
This commit is contained in:
@ -324,6 +324,10 @@ pub fn build(b: *std.Build) !void {
|
|||||||
run_step.addFileSourceArg(src_source);
|
run_step.addFileSourceArg(src_source);
|
||||||
_ = run_step.captureStdErr(); // so we don't see stderr
|
_ = 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");
|
const copy_step = RunStep.create(b, "copy terminfo db");
|
||||||
copy_step.addArgs(&.{ "cp", "-R" });
|
copy_step.addArgs(&.{ "cp", "-R" });
|
||||||
|
Reference in New Issue
Block a user