Skip to content

Commit 4f8c2d8

Browse files
committed
ci: fix link error on macOS
1 parent 5f4ea4b commit 4f8c2d8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ jobs:
245245
env:
246246
CC: "/usr/local/opt/llvm/bin/clang"
247247
CXX: "/usr/local/opt/llvm/bin/clang++"
248+
LDFLAGS: "-L/usr/local/opt/llvm/lib/c++ -Wl,-rpath,/usr/local/opt/llvm/lib/c++"
248249
run: |
249250
cmake --preset 'NinjaMulti' \
250251
-DMAADEPS_TRIPLET='maa-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-osx' \

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ jobs:
248248
env:
249249
CC: "/usr/local/opt/llvm/bin/clang"
250250
CXX: "/usr/local/opt/llvm/bin/clang++"
251+
LDFLAGS: "-L/usr/local/opt/llvm/lib/c++ -Wl,-rpath,/usr/local/opt/llvm/lib/c++"
251252
run: |
252253
cmake --preset 'NinjaMulti' \
253254
-DMAADEPS_TRIPLET='maa-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-osx' \

0 commit comments

Comments
 (0)