aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step.zig
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@random-projects.net>2023-07-25 13:26:32 +0200
committerAndrew Kelley <andrew@ziglang.org>2023-07-30 11:18:50 -0700
commit5c0181841081170a118d8e50af2a09f5006f59e1 (patch)
tree085e2f6ce612c883aeb328611b510462ddcf55b6 /lib/std/Build/Step.zig
parentce95a3b153e9f3e83232e641c26a41e7dbd01165 (diff)
downloadzig-5c0181841081170a118d8e50af2a09f5006f59e1.tar.gz
zig-5c0181841081170a118d8e50af2a09f5006f59e1.zip
Introduces `Compile.getEmittedX()` functions, drops `Compile.emit_X`. Resolves #14971
Diffstat (limited to 'lib/std/Build/Step.zig')
-rw-r--r--lib/std/Build/Step.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/std/Build/Step.zig b/lib/std/Build/Step.zig
index 991283dbc5..274188f7f2 100644
--- a/lib/std/Build/Step.zig
+++ b/lib/std/Build/Step.zig
@@ -423,7 +423,10 @@ pub fn evalZigProcess(
});
}
- if (s.cast(Compile)) |compile| if (compile.emit_bin == .no_emit) return result;
+ if (s.cast(Compile)) |compile| {
+ if (compile.generated_bin == null) // TODO(xq): How to handle this properly?!
+ return result;
+ }
return result orelse return s.fail(
"the following command failed to communicate the compilation result:\n{s}",