fix regression on posix from previous commit
This commit is contained in:
parent
d08c57741a
commit
4e2a5e6b13
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user