We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede8886 commit 2ecb82dCopy full SHA for 2ecb82d
src/lib.rs
@@ -133,7 +133,7 @@ impl Build {
133
};
134
135
let compiler_path =
136
- which::which(compiler_path).expect(&format!("cannot find {compiler_path}"));
+ which::which(compiler_path).unwrap_or_else(|_| panic!("cannot find {compiler_path}"));
137
let bindir = compiler_path.parent().unwrap();
138
let compiler_path = compiler_path.to_str().unwrap();
139
let compiler_args = compiler.cflags_env();
0 commit comments