Skip to content

Commit

Permalink
fix regression on posix from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Oct 16, 2017
1 parent d08c577 commit 4e2a5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/build.zig
Expand Up @@ -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);
}
};
}
Expand Down

0 comments on commit 4e2a5e6

Please sign in to comment.