| ... | @@ -641,11 +641,11 @@ pub const Builder = struct { | ... | @@ -641,11 +641,11 @@ pub const Builder = struct { |
| 641 | if (builtin.environ == builtin.Environ.msvc) { | 641 | if (builtin.environ == builtin.Environ.msvc) { |
| 642 | return "cl.exe"; | 642 | return "cl.exe"; |
| 643 | } else { | 643 | } else { |
| 644 | return os.getEnvVarOwned(self.builder.allocator, "CC") %% |err| { | 644 | return os.getEnvVarOwned(self.allocator, "CC") %% |err| { |
| 645 | if (err == error.EnvironmentVariableNotFound) { | 645 | if (err == error.EnvironmentVariableNotFound) { |
| 646 | ([]const u8)("cc") | 646 | ([]const u8)("cc") |
| 647 | } else { | 647 | } else { |
| 648 | return err | 648 | debug.panic("Unable to get environment variable: {}", err); |
| 649 | } | 649 | } |
| 650 | }; | 650 | }; |
| 651 | } | 651 | } |