diff --git a/Cargo.toml b/Cargo.toml index c6f9e20..8a106b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,4 +15,4 @@ categories = ["development-tools::build-utils"] edition = "2021" [dependencies] -cc = "1.0.83" +cc = "1.1.0" diff --git a/src/lib.rs b/src/lib.rs index a569184..5265f2b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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"));