Skip to content

Commit

Permalink
minimal maxosx deployment target is 10.9 when cpp (rust-lang#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone authored Sep 23, 2023
1 parent ffdf356 commit c0f2118
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3464,7 +3464,11 @@ impl Build {
if arch_str == Some("aarch64") {
"11.0"
} else {
"10.7"
if self.cpp {
"10.9"
} else {
"10.7"
}
}
.into()
}),
Expand Down
4 changes: 1 addition & 3 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,9 @@ fn gnu_flag_if_supported() {
.must_not_have("-std=c++11");
}

#[cfg(not(windows))]
#[test]
fn gnu_flag_if_supported_cpp() {
if cfg!(windows) {
return;
}
let test = Test::gnu();
test.gcc()
.cpp(true)
Expand Down

0 comments on commit c0f2118

Please sign in to comment.