add depedency so build doesn't panic
This commit is contained in:
parent
6c1cfcb2fe
commit
eabe53fbe0
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue