Skip to content

Commit c0f2118

Browse files
authored
minimal maxosx deployment target is 10.9 when cpp (#872)
1 parent ffdf356 commit c0f2118

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3464,7 +3464,11 @@ impl Build {
34643464
if arch_str == Some("aarch64") {
34653465
"11.0"
34663466
} else {
3467-
"10.7"
3467+
if self.cpp {
3468+
"10.9"
3469+
} else {
3470+
"10.7"
3471+
}
34683472
}
34693473
.into()
34703474
}),

tests/test.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,9 @@ fn gnu_flag_if_supported() {
343343
.must_not_have("-std=c++11");
344344
}
345345

346+
#[cfg(not(windows))]
346347
#[test]
347348
fn gnu_flag_if_supported_cpp() {
348-
if cfg!(windows) {
349-
return;
350-
}
351349
let test = Test::gnu();
352350
test.gcc()
353351
.cpp(true)

0 commit comments

Comments
 (0)