diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-07-20 13:04:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 13:04:49 -0700 |
| commit | b5f3d121644031cf644271296e1ee5dbf363abeb (patch) | |
| tree | 1a6aa7a7ca974b2d5e24bddf6e2f3b9f7c0040c6 /lib/std/process.zig | |
| parent | ef3a746da1a85a8b4a653cb78e0464c71d35b64e (diff) | |
| parent | 645ad1ef72a09785fe5d7b33f1f9f2394bf52f57 (diff) | |
| download | zig-b5f3d121644031cf644271296e1ee5dbf363abeb.tar.gz zig-b5f3d121644031cf644271296e1ee5dbf363abeb.zip | |
Merge pull request #20688 from ziglang/incr-test
introduce a new tool for testing incremental compilation
Diffstat (limited to 'lib/std/process.zig')
| -rw-r--r-- | lib/std/process.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig index 86654e4b5a..eca3a26c29 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -2032,3 +2032,9 @@ pub fn createWindowsEnvBlock(allocator: mem.Allocator, env_map: *const EnvMap) ! i += 1; return try allocator.realloc(result, i); } + +/// Logs an error and then terminates the process with exit code 1. +pub fn fatal(comptime format: []const u8, format_arguments: anytype) noreturn { + std.log.err(format, format_arguments); + exit(1); +} |
