From c4cd3c0541d605141b80c5b65f4a5d09c02c0f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 24 Nov 2024 21:47:13 +0100 Subject: [PATCH] test: Force compile test cases to be codegen'd if requested. --- test/src/Cases.zig | 4 ++++ 1 file changed, 4 insertions(+) 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| {