authorgravatar for luuk@degram.devLuuk de Gram <luuk@degram.dev> 2022-10-18 17:15:58+02:00
committergravatar for luuk@degram.devLuuk de Gram <luuk@degram.dev> 2022-10-18 17:15:58+02:00
log10b56b21d4f37f7a79562deb3bc6a53ce6da0eb0
tree0a8456bcf9937407316ef7c13bb414dc032da31b
parent687a7d38a00e187a75c43617d8de6fefaffb5449
signaturelock-open Commit is signed but in an unrecognized format.

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.

1 files changed, 3 insertions(+), 1 deletions(-)

lib/std/build/CheckObjectStep.zig+3-1
...@@ -45,7 +45,9 @@ pub fn runAndCompare(self: *CheckObjectStep) *EmulatableRunStep {...@@ -45,7 +45,9 @@ pub fn runAndCompare(self: *CheckObjectStep) *EmulatableRunStep {
45 assert(dependencies_len > 0);45 assert(dependencies_len > 0);
46 const exe_step = self.step.dependencies.items[dependencies_len - 1];46 const exe_step = self.step.dependencies.items[dependencies_len - 1];
47 const exe = exe_step.cast(std.build.LibExeObjStep).?;47 const exe = exe_step.cast(std.build.LibExeObjStep).?;
48 return EmulatableRunStep.create(self.builder, "EmulatableRun", exe);48 const emulatable_step = EmulatableRunStep.create(self.builder, "EmulatableRun", exe);
49 emulatable_step.step.dependOn(&self.step);
50 return emulatable_step;
49}51}
5052
51/// There two types of actions currently suported:53/// There two types of actions currently suported: