Skip to content

Commit 0aa5872

Browse files
committed
use at least macos 10.12
1 parent a86d345 commit 0aa5872

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Tools/pixi-packages/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ else
1717
exit 1
1818
fi
1919

20+
# rattler-build by default set a target of 10.9
21+
# override it to at least 10.12
22+
case ${MACOSX_DEPLOYMENT_TARGET:-10.12} in
23+
10.12|10.13|10.14|10.15|10.16)
24+
;;
25+
10.*)
26+
export MACOSX_DEPLOYMENT_TARGET=10.12
27+
;;
28+
*)
29+
;;
30+
esac
31+
2032
BUILD_DIR="../build_${PYTHON_VARIANT}"
2133
mkdir -p "${BUILD_DIR}"
2234
cd "${BUILD_DIR}"

Tools/pixi-packages/default/recipe.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ outputs:
3838
build:
3939
- ${{ compiler('c') }}
4040
- ${{ compiler('cxx') }}
41+
# Note that we are not using stdlib arguments which means the packages
42+
# are built for the build settings and are not relocatable to a different
43+
# machine that has a older system version. (eg: macOS/glibc version)
4144
- make
4245
- pkg-config
4346
# configure script looks for llvm-ar for lto

0 commit comments

Comments
 (0)