Skip to content

Commit 2f7cc33

Browse files
madsmtmtgross35
authored andcommitted
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 0542060 commit 2f7cc33

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
@@ -440,13 +440,7 @@ impl Config {
440440
pub fn build(&mut self) -> PathBuf {
441441
let target = match self.target.clone() {
442442
Some(t) => t,
443-
None => {
444-
let mut t = getenv_unwrap("TARGET");
445-
if t.ends_with("-darwin") && self.uses_cxx11 {
446-
t += "11"
447-
}
448-
t
449-
}
443+
None => getenv_unwrap("TARGET"),
450444
};
451445
let host = self.host.clone().unwrap_or_else(|| getenv_unwrap("HOST"));
452446

0 commit comments

Comments
 (0)