diff --git a/test/src/Cases.zig b/test/src/Cases.zig index e6d1f966c0..78f538fb16 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -723,6 +723,10 @@ pub fn lowerToBuildSteps( switch (update.case) { .Compile => { + // Force the binary to be emitted if requested. + if (case.emit_bin) { + _ = artifact.getEmittedBin(); + } parent_step.dependOn(&artifact.step); }, .CompareObjectFile => |expected_output| {