Skip to content

Commit

Permalink
MACOSX_DEPLOYMENT_TARGET=14.0 on arm64 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Oct 9, 2024
1 parent 4efcd96 commit 3338fb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ci/scripts/run_cibuildwheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -x

# OpenMP is not present on macOS by default
if [[ $(uname) == "Darwin" ]]; then
export MACOSX_DEPLOYMENT_TARGET=12.0
# if [[ "$CIBW_BUILD" == *-macosx_arm64 ]]; then
# OPENMP_URL="https://anaconda.org/conda-forge/llvm-openmp/11.1.0/download/osx-arm64/llvm-openmp-11.1.0-hf3c4609_1.tar.bz2"
# else
Expand All @@ -23,6 +22,12 @@ if [[ $(uname) == "Darwin" ]]; then
# export CXXFLAGS="$CXXFLAGS -I$PREFIX/include"
# export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib -lomp"

if [[ "$CIBW_BUILD" == *-macosx_arm64 ]]; then
export MACOSX_DEPLOYMENT_TARGET=14.0
else
export MACOSX_DEPLOYMENT_TARGET=12.0
fi


curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"

Expand Down

0 comments on commit 3338fb8

Please sign in to comment.