Skip to content

Commit

Permalink
[ci] make mexopts file compatible with arm64 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 13, 2024
1 parent ef6891c commit 2166cc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ jobs:
objdump -p ../mmclab/mmc.mexw* | grep "DLL Name:"
elif [[ "$RUNNER_OS" == "macOS" ]]; then
which mex
if [[ "$RUNNER_ARCH" == "ARM64" ]]; then
perl -pi -e 's/maci64/maca64/g' mexopts_maci64_gcc.xml
perl -pi -e 's/MACI64/MACA64/g' mexopts_maci64_gcc.xml
fi
make mex${{ env.OMPONLY }} CC=gcc-11 CXX=g++-11 MEXLINKOPT="-static-libstdc++ -static-libgcc -fopenmp" EXTRALIB="-v -f mexopts_maci64_gcc.xml"
otool -L ../mmclab/mmc.mex*
else
Expand Down

0 comments on commit 2166cc9

Please sign in to comment.