zig

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

commit 4e2a5e6b1372ca22735a8f73a56c9de417460722 (tree)
parent d08c57741ae190c587c42861e71b0e361903733e
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Mon, 16 Oct 2017 01:16:51 -0400

fix regression on posix from previous commit

Diffstat:
Mstd/build.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/std/build.zig b/std/build.zig @@ -641,11 +641,11 @@ pub const Builder = struct { if (builtin.environ == builtin.Environ.msvc) { return "cl.exe"; } else { - return os.getEnvVarOwned(self.builder.allocator, "CC") %% |err| { + return os.getEnvVarOwned(self.allocator, "CC") %% |err| { if (err == error.EnvironmentVariableNotFound) { ([]const u8)("cc") } else { - return err + debug.panic("Unable to get environment variable: {}", err); } }; }