Skip to content

Commit 34c1b55

Browse files
committed
[ghactions] Link against brew's libc++ for macos + clang
1 parent 0d477b5 commit 34c1b55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ jobs:
107107
run: |
108108
echo "CXXFLAGS=-stdlib=libc++" >> $GITHUB_ENV
109109
110+
- name: Add clang LDFLAGS for macos to link against brew's libc++
111+
if: ${{ contains(matrix.os, 'macos') && contains(matrix.cxx, 'clang') }}
112+
run: |
113+
echo "LDFLAGS=-L$(brew --prefix llvm)/lib/c++ -L$(brew --prefix llvm)/lib/unwind -lunwind" >> $GITHUB_ENV
114+
110115
- name: Build h5
111116
run: |
112117
cmake -S . -B build -G Ninja -DCMAKE_INSTALL_PREFIX=$HOME/install -DBuild_Documentation=${{ matrix.doc }}

0 commit comments

Comments
 (0)