diff options
| author | Felix "xq" Queißner <git@random-projects.net> | 2023-07-26 16:32:50 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-30 11:18:50 -0700 |
| commit | 35d0a49db911e9c459902a021a5bfa05c97ca107 (patch) | |
| tree | 4c3d3c526fe4bcca50ca30fb1ec0ff1b785360f4 /test/src/Cases.zig | |
| parent | 5c0181841081170a118d8e50af2a09f5006f59e1 (diff) | |
| download | zig-35d0a49db911e9c459902a021a5bfa05c97ca107.tar.gz zig-35d0a49db911e9c459902a021a5bfa05c97ca107.zip | |
Introduces Compile.forceBuild() and Compile.forceEmit(…)
Diffstat (limited to 'test/src/Cases.zig')
| -rw-r--r-- | test/src/Cases.zig | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/src/Cases.zig b/test/src/Cases.zig index 112b4f6dfb..1cb9b0fcdc 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -551,10 +551,11 @@ pub fn lowerToBuildSteps( }), }; - if (case.emit_bin) - _ = artifact.getEmittedBin(); - - _ = artifact.getEmittedBin(); // TODO(xq): The test cases break if we set all to -fno-emit-X + if (case.emit_bin) { + artifact.forceEmit(.bin); + } else { + artifact.forceBuild(); + } if (case.link_libc) artifact.linkLibC(); |
