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 0372f89 commit ede8886Copy full SHA for ede8886
src/lib.rs
@@ -135,9 +135,9 @@ impl Build {
135
let compiler_path =
136
which::which(compiler_path).expect(&format!("cannot find {compiler_path}"));
137
let bindir = compiler_path.parent().unwrap();
138
- let compiler_path = compiler_path.to_string_lossy();
+ let compiler_path = compiler_path.to_str().unwrap();
139
let compiler_args = compiler.cflags_env();
140
- let compiler_args = compiler_args.to_string_lossy();
+ let compiler_args = compiler_args.to_str().unwrap();
141
if env::var_os("STATIC_CC").is_none() {
142
make.env("STATIC_CC", format!("{compiler_path} {compiler_args}"));
143
}
0 commit comments