Skip to content

Commit

Permalink
Update cibw_macos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
peekxc authored Jun 6, 2024
1 parent e0870cd commit 15c0045
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/cibw_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib -lomp"
export LDFLAGS="$LDFLAGS -Wl,-S -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib -lomp"
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# Add OpenMP LD FLags
export LDFLAGS="$LDFLAGS -L/opt/homebrew/opt/libomp/lib"
export CXXFLAGS="$CXXFLAGS -I/opt/homebrew/opt/libomp/include"

if [[ $(uname -m) == "arm64" && "$CIBW_BUILD" == "cp38-macosx_arm64" ]]; then
# Enables native building and testing for macosx arm on Python 3.8. For details see:
# https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
Expand Down

0 comments on commit 15c0045

Please sign in to comment.