mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
CheckObjectStep: correctly depend on its own step
When creating an `EmulatableRunStep`, it now correctly depends on its own step rather than only the executable that was created. This means we do not need to add extra `dependOn` statements on both the emulatable step as well as the check object step.
This commit is contained in:
parent
687a7d38a0
commit
10b56b21d4
@ -45,7 +45,9 @@ pub fn runAndCompare(self: *CheckObjectStep) *EmulatableRunStep {
|
||||
assert(dependencies_len > 0);
|
||||
const exe_step = self.step.dependencies.items[dependencies_len - 1];
|
||||
const exe = exe_step.cast(std.build.LibExeObjStep).?;
|
||||
return EmulatableRunStep.create(self.builder, "EmulatableRun", exe);
|
||||
const emulatable_step = EmulatableRunStep.create(self.builder, "EmulatableRun", exe);
|
||||
emulatable_step.step.dependOn(&self.step);
|
||||
return emulatable_step;
|
||||
}
|
||||
|
||||
/// There two types of actions currently suported:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user