Skip to content

Commit

Permalink
use gcc-10 on macOS for matlab mex
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 11, 2023
1 parent 22dcb61 commit b7a60b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ jobs:
cd src
if [[ "$RUNNER_OS" == "Windows" ]]; then
make mex
elif [[ "$RUNNER_OS" == "macOS" ]]; then
make mex CC=gcc-10 CXX=g++-10 MEXLINKOPT="-static-libstdc++ -static-libgcc -fopenmp"
else
make mex CC=gcc CXX=g++ MEXLINKOPT="-static-libstdc++ -static-libgcc -fopenmp"
make mex MEXLINKOPT="-static-libstdc++ -static-libgcc -fopenmp"
fi
- name: Build binary
run: |
Expand Down

0 comments on commit b7a60b7

Please sign in to comment.