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 babdbf0 commit 269427fCopy full SHA for 269427f
src/lib.rs
@@ -218,8 +218,12 @@ impl Build {
218
// as well.
219
if path.ends_with("-gcc") && !target.contains("unknown-linux-musl") {
220
let path = &path[..path.len() - 4];
221
- configure.env("RANLIB", format!("{}-ranlib", path));
222
- configure.env("AR", format!("{}-ar", path));
+ if env::var_os("RANLIB").is_none() {
+ configure.env("RANLIB", format!("{}-ranlib", path));
223
+ }
224
+ if env::var_os("AR").is_none() {
225
+ configure.env("AR", format!("{}-ar", path));
226
227
}
228
229
// Make sure we pass extra flags like `-ffunction-sections` and
0 commit comments