There was an error while loading. Please reload this page.
1 parent d08c577 commit 4e2a5e6Copy full SHA for 4e2a5e6
1 file changed
std/build.zig
@@ -641,11 +641,11 @@ pub const Builder = struct {
641
if (builtin.environ == builtin.Environ.msvc) {
642
return "cl.exe";
643
} else {
644
- return os.getEnvVarOwned(self.builder.allocator, "CC") %% |err| {
+ return os.getEnvVarOwned(self.allocator, "CC") %% |err| {
645
if (err == error.EnvironmentVariableNotFound) {
646
([]const u8)("cc")
647
648
- return err
+ debug.panic("Unable to get environment variable: {}", err);
649
}
650
};
651
0 commit comments