Skip to content

Commit 2f1105d

Browse files
committed
fix(ci): pass macOS deployment target via meson cpp_args
MACOSX_DEPLOYMENT_TARGET env var doesn't propagate to ninja backend. Use -Dcpp_args/-Dcpp_link_args to pass -mmacosx-version-min=11.0 directly.
1 parent a4f711b commit 2f1105d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,16 @@ jobs:
150150
brew install meson ninja pkg-config sqlite
151151
152152
- name: Configure
153-
env:
154-
# macOS 11.0+ required for std::jthread (libc++ LLVM 11 sync primitives)
155-
MACOSX_DEPLOYMENT_TARGET: '11.0'
156153
run: |
154+
# macOS 11.0+ required for std::jthread (libc++ LLVM 11 sync primitives)
157155
meson setup build \
158156
-Dbuildtype=debugoptimized \
159157
-Denable_simd_avx=false \
160-
-Denable_simd_neon=true
158+
-Denable_simd_neon=true \
159+
-Dcpp_args="-mmacosx-version-min=11.0" \
160+
-Dcpp_link_args="-mmacosx-version-min=11.0"
161161
162162
- name: Build
163-
env:
164-
MACOSX_DEPLOYMENT_TARGET: '11.0'
165163
run: meson compile -C build
166164

167165
- name: Test

0 commit comments

Comments
 (0)