aboutsummaryrefslogtreecommitdiff
path: root/lib/std/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-10 14:58:24 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-10 15:40:27 -0500
commitd44a69689eb2579ceb290cd19b91f824b30e6acc (patch)
treec9cd60aa685e569fb0b93679494f463040d9e73a /lib/std/build.zig
parent891e2149b0d72a511e58a994c3f66dff500e6615 (diff)
downloadzig-d44a69689eb2579ceb290cd19b91f824b30e6acc.tar.gz
zig-d44a69689eb2579ceb290cd19b91f824b30e6acc.zip
std.ChildProcess.spawn has a consistent error set
across targets. Also fix detection of pkg-config not installed on Windows when using zig build.
Diffstat (limited to 'lib/std/build.zig')
-rw-r--r--lib/std/build.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig
index 899e74105b..ade3dabea3 100644
--- a/lib/std/build.zig
+++ b/lib/std/build.zig
@@ -957,6 +957,7 @@ pub const Builder = struct {
error.ProcessTerminated => error.PkgConfigCrashed,
error.ExitCodeFailure => error.PkgConfigFailed,
error.FileNotFound => error.PkgConfigNotInstalled,
+ error.InvalidName => error.PkgConfigNotInstalled,
error.PkgConfigInvalidOutput => error.PkgConfigInvalidOutput,
else => return err,
};