Skip to content

Commit

Permalink
Remove workaround for broken cc-rs versions
Browse files Browse the repository at this point in the history
I didn't update the dependency to anything specific, just a version that
I know has the fix.
  • Loading branch information
madsmtm committed Feb 7, 2025
1 parent faccc07 commit b23b81a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ categories = ["development-tools::build-utils"]
edition = "2021"

[dependencies]
cc = "1.0.83"
cc = "1.1.0"
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,7 @@ impl Config {
pub fn build(&mut self) -> PathBuf {
let target = match self.target.clone() {
Some(t) => t,
None => {
let mut t = getenv_unwrap("TARGET");
if t.ends_with("-darwin") && self.uses_cxx11 {
t += "11"
}
t
}
None => getenv_unwrap("TARGET"),
};
let host = self.host.clone().unwrap_or_else(|| getenv_unwrap("HOST"));

Expand Down

0 comments on commit b23b81a

Please sign in to comment.