Commit c4cd3c0541

Alex Rønne Petersen <alex@alexrp.com>
2024-11-24 21:47:13
test: Force compile test cases to be codegen'd if requested.
1 parent ad2be71
Changed files (1)
test
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| {