Skip to content

Commit

Permalink
Don't pass `MACOSX_DEPLOYMENT_TARGET when query default value from …
Browse files Browse the repository at this point in the history
…rustc
  • Loading branch information
messense committed Jan 8, 2023
1 parent e346ab0 commit 661fc3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ pub(crate) fn rustc_macosx_target_version(target: &str) -> (u16, u16) {
.arg("--target")
.arg(target)
.env("RUSTC_BOOTSTRAP", "1")
.env_remove("MACOSX_DEPLOYMENT_TARGET")
.output()
.context("Failed to run rustc to get the target spec")?;
let stdout = String::from_utf8(cmd.stdout).context("rustc output is not valid utf-8")?;
Expand Down

0 comments on commit 661fc3c

Please sign in to comment.