Skip to content

Commit f80e153

Browse files
committed
ci: Fix llvm detection on macOS CI
LLVM is keg-only now, so we need to add CPPFLAGS / LDFLAGS to the keg subdir inside /usr/local
1 parent 9fd5eb6 commit f80e153

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/macos.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
python -m pip install pytest pytest-xdist pytest-subtests jsonschema coverage codecov
3737
- run: brew install pkg-config ninja llvm qt@5
3838
- env:
39-
CPPFLAGS: "-I/usr/local/include"
40-
LDFLAGS: "-L/usr/local/lib"
39+
CPPFLAGS: "-I/usr/local/include -I/usr/local/opt/llvm/include"
40+
LDFLAGS: "-L/usr/local/lib -L/usr/local/opt/llvm/lib"
4141
MESON_CI_JOBNAME: unittests-appleclang
4242
MESON_UNIT_TEST_BACKEND: ninja
4343
# These cannot evaluate anything, so we cannot set PATH or SDKROOT here
@@ -75,8 +75,8 @@ jobs:
7575
python3 -m pip install --upgrade pip
7676
python3 -m pip install cython coverage codecov
7777
- env:
78-
CPPFLAGS: "-I/usr/local/include"
79-
LDFLAGS: "-L/usr/local/lib"
78+
CPPFLAGS: "-I/usr/local/include -I/usr/local/opt/llvm/include"
79+
LDFLAGS: "-L/usr/local/lib -L/usr/local/opt/llvm/lib"
8080
MESON_ARGS: --unity=${{ matrix.unity }}
8181
CI: 1
8282
# These cannot evaluate anything, so we cannot set PATH or SDKROOT here

0 commit comments

Comments
 (0)