Skip to content

Commit

Permalink
ld env
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Oct 6, 2024
1 parent 7d2063e commit 0a5175b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/musl-math-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ fn build_musl_math(cfg: &Config) {
println!("cargo::warning=env {ld_env}, {}", ld_env.replace("-", "_"));

let ld = env::var_os(&ld_env)
.or_else(|| env::var_os(ld_env.replace("-", "_")))
.or_else(|| env::var_os(ld_env.replace("-", "_").to_uppercase()))
.or_else(|| env::var_os("LD"))
.map(|s| s.into_string().unwrap())
.unwrap_or_else(|| "ld".to_owned());
Expand Down

0 comments on commit 0a5175b

Please sign in to comment.