Skip to content

Commit

Permalink
Temp fix openmp support macos
Browse files Browse the repository at this point in the history
  • Loading branch information
David R Connell committed Mar 1, 2024
1 parent 2ddbd7a commit 52adcd5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/matlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,15 @@ jobs:
build-macos:
name: Build macOS toolbox
runs-on: macos-latest
# Use system Clang (supports openmp) instead of XCode Clang.
# See https://gist.github.com/svenevs/f00ed3898d2af6248921b63254aa8cc1
env:
LLVM_VERSION: "14.0.5"
CC: /usr/bin/clang
CXX: /usr/bin/clang++
CPPFLAGS: "-Xpreprocessor -fopenmp"
CFLAGS: "-I/usr/local/opt/libomp/include"
CXXFLAGS: "-I/usr/local/opt/libomp/include"
LDFLAGS: "-Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp"

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 52adcd5

Please sign in to comment.