From eabe53fbe0b8024c1c894e305981bd36ce50efa4 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 10 May 2024 21:03:44 +0200 Subject: [PATCH] add depedency so build doesn't panic --- src/buildlib.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/buildlib.zig b/src/buildlib.zig index a897508..2f2b70b 100644 --- a/src/buildlib.zig +++ b/src/buildlib.zig @@ -14,7 +14,10 @@ options: ConvertFileOptions, pub fn convertExecutable(b: *std.Build, artifact: *std.Build.Step.Compile, options: ConvertFileOptions) *Self { const inputPath = artifact.getEmittedBin().getPath(b); - return convertFile(b, inputPath, options); + const build = convertFile(b, inputPath, options); + build.step.dependOn(&artifact.step); + + return build; } pub fn convertInstalled(b: *std.Build, path: []const u8, options: ConvertFileOptions) *Self {