add depedency so build doesn't panic

This commit is contained in:
Hamcha 2024-05-10 21:03:44 +02:00
parent 6c1cfcb2fe
commit eabe53fbe0
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

View file

@ -14,7 +14,10 @@ options: ConvertFileOptions,
pub fn convertExecutable(b: *std.Build, artifact: *std.Build.Step.Compile, options: ConvertFileOptions) *Self { pub fn convertExecutable(b: *std.Build, artifact: *std.Build.Step.Compile, options: ConvertFileOptions) *Self {
const inputPath = artifact.getEmittedBin().getPath(b); 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 { pub fn convertInstalled(b: *std.Build, path: []const u8, options: ConvertFileOptions) *Self {