Skip to content

Commit 6c77059

Browse files
committed
[ghactions] Link against brew's libc++ for macos + clang
1 parent c53e055 commit 6c77059

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
@@ -104,6 +104,11 @@ jobs:
104104
run: |
105105
echo "CXXFLAGS=-stdlib=libc++" >> $GITHUB_ENV
106106
107+
- name: Add clang LDFLAGS for macos to link against brew's libc++
108+
if: ${{ contains(matrix.os, 'macos') && contains(matrix.cxx, 'clang') }}
109+
run: |
110+
echo "LDFLAGS=-L$(brew --prefix llvm)/lib/c++ -L$(brew --prefix llvm)/lib/unwind -lunwind" >> $GITHUB_ENV
111+
107112
- name: Build itertools
108113
run: |
109114
cmake -S . -B build -G Ninja -DCMAKE_INSTALL_PREFIX=$HOME/install -DBuild_Documentation=${{ matrix.doc }}

0 commit comments

Comments
 (0)