Skip to content

Commit 0372f89

Browse files
committed
Use MACOSX_DEPLOYMENT_TARGET from env (if set)
1 parent 6fcf719 commit 0372f89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,10 @@ impl Build {
9999
make.arg("-e");
100100

101101
match target {
102-
"x86_64-apple-darwin" => {
103-
// 10.15 causes segmentation fault on github ci
102+
"x86_64-apple-darwin" if env::var_os("MACOSX_DEPLOYMENT_TARGET").is_none() => {
104103
make.env("MACOSX_DEPLOYMENT_TARGET", "10.11");
105104
}
106-
"aarch64-apple-darwin" => {
105+
"aarch64-apple-darwin" if env::var_os("MACOSX_DEPLOYMENT_TARGET").is_none() => {
107106
make.env("MACOSX_DEPLOYMENT_TARGET", "11.0");
108107
}
109108
_ if target.contains("linux") => {

0 commit comments

Comments
 (0)