Skip to content

Commit 2d405dc

Browse files
committed
newer clang version via hoembrew
1 parent 1db601a commit 2d405dc

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/testMacOS.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: testMacOS
33
on:
44
push:
55
branches:
6-
- '**' # Run on all branches
6+
- '**'
77
tags-ignore:
8-
- 'v*' # Ignore tag pushes like v1.2.3
8+
- 'v*'
99
pull_request:
1010
branches:
1111
- '**'
@@ -26,19 +26,27 @@ jobs:
2626
- name: Install dependencies (Homebrew)
2727
run: |
2828
brew update
29-
brew install cmake boost gtk+3 hdf5 libomp
29+
brew install cmake boost gtk+3 hdf5 libomp llvm
30+
31+
- name: Configure Homebrew clang (symlink for easier access)
32+
run: |
33+
brew unlink llvm && brew link llvm --force --overwrite
3034
31-
- name: Configure CMake with OpenMP support
35+
- name: Configure CMake with Homebrew clang and OpenMP support
3236
env:
3337
LDFLAGS: "-L/opt/homebrew/opt/libomp/lib"
3438
CPPFLAGS: "-I/opt/homebrew/opt/libomp/include"
39+
CC: "/opt/homebrew/opt/llvm/bin/clang"
40+
CXX: "/opt/homebrew/opt/llvm/bin/clang++"
41+
PATH: "/opt/homebrew/opt/llvm/bin:$PATH"
3542
run: |
3643
cmake -B build \
3744
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
3845
-DRAYX_WERROR=ON \
3946
-DRAYX_REQUIRE_CUDA=OFF \
40-
-DCMAKE_CXX_COMPILER="$(which clang++)" \
41-
-DCMAKE_CXX_FLAGS="-Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include" \
47+
-DCMAKE_C_COMPILER="$CC" \
48+
-DCMAKE_CXX_COMPILER="$CXX" \
49+
-DCMAKE_CXX_FLAGS="-stdlib=libc++ -Xpreprocessor -fopenmp -I/opt/homebrew/opt/libomp/include" \
4250
-DCMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/opt/libomp/lib -lomp"
4351
4452
- name: Build

0 commit comments

Comments
 (0)