zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c4cd3c0541d605141b80c5b65f4a5d09c02c0f96 (tree)
parent ad2be71514adb5f46176c80d6376e74df5f93c93
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Sun, 24 Nov 2024 21:47:13 +0100

test: Force compile test cases to be codegen'd if requested.

Diffstat:
Mtest/src/Cases.zig | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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| {