Skip to content

Commit

Permalink
MAINT: selective OSX deploy target
Browse files Browse the repository at this point in the history
* only overwrite MACOSX_DEPLOYMENT_TARGET environment
variable when it contains the "10.x" version string

* motivation is to allow sensibel overrides as in:
MacPython/scipy-wheels#150

* note that I have not tested this yet, but am open
to making revisions of course
  • Loading branch information
tylerjereddy committed Dec 8, 2021
1 parent 041625d commit ae78060
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion osx_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,11 @@ function macos_arm64_cross_build_setup {
export FC=$FC_ARM64
export F90=${F90_ARM64:-${FC}}
export F77=${F77_ARM64:-${FC}}
export MACOSX_DEPLOYMENT_TARGET="11.0"
# we only overwrite the MACOSX_DEPLOYMENT_TARGET
# for versions starting with 10.x
if [[ $MACOSX_DEPLOYMENT_TARGET =~ "10." ]]; then
export MACOSX_DEPLOYMENT_TARGET="11.0"
fi
export CROSS_COMPILING=1
export LDFLAGS+=" -arch arm64 -L$BUILD_PREFIX/lib -Wl,-rpath,$BUILD_PREFIX/lib ${FC_ARM64_LDFLAGS:-}"
# This would automatically let autoconf know that we are cross compiling for arm64 darwin
Expand Down

0 comments on commit ae78060

Please sign in to comment.