fix regression on posix from previous commit

This commit is contained in:
Andrew Kelley 2017-10-16 01:16:51 -04:00
parent d08c57741a
commit 4e2a5e6b13

View File

@ -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);
}
};
}