Skip to content

Commit b23b81a

Browse files
committed
Remove workaround for broken cc-rs versions
I didn't update the dependency to anything specific, just a version that I know has the fix.
1 parent faccc07 commit b23b81a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ categories = ["development-tools::build-utils"]
1515
edition = "2021"
1616

1717
[dependencies]
18-
cc = "1.0.83"
18+
cc = "1.1.0"

src/lib.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,7 @@ impl Config {
437437
pub fn build(&mut self) -> PathBuf {
438438
let target = match self.target.clone() {
439439
Some(t) => t,
440-
None => {
441-
let mut t = getenv_unwrap("TARGET");
442-
if t.ends_with("-darwin") && self.uses_cxx11 {
443-
t += "11"
444-
}
445-
t
446-
}
440+
None => getenv_unwrap("TARGET"),
447441
};
448442
let host = self.host.clone().unwrap_or_else(|| getenv_unwrap("HOST"));
449443

0 commit comments

Comments
 (0)