Skip to content

Commit d33f850

Browse files
committed
fix(docker): bump macOS deployment target for bundled z3 builds
The osxcross SDK headers gate std::to_chars behind macOS 13.3+. Bundled z3 builds in macOS-targeted Docker images were compiling with -mmacosx-version-min=11.0, causing C++ availability errors in libc++. Set MACOSX_DEPLOYMENT_TARGET and target C/C++ flags to 13.3.
1 parent 077cddb commit d33f850

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deploy/docker/Dockerfile.cli-macos

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ ENV AR_aarch64_apple_darwin=aarch64-apple-darwin25.1-ar
5353
ENV CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=oa64-clang
5454
ENV CARGO_TARGET_AARCH64_APPLE_DARWIN_AR=aarch64-apple-darwin25.1-ar
5555
ENV SDKROOT=/osxcross/SDK/MacOSX.sdk
56+
ENV MACOSX_DEPLOYMENT_TARGET=13.3
57+
ENV CFLAGS_aarch64_apple_darwin=--target=arm64-apple-macosx\ -mmacosx-version-min=13.3
58+
ENV CXXFLAGS_aarch64_apple_darwin=--target=arm64-apple-macosx\ -mmacosx-version-min=13.3
5659
ENV BINDGEN_EXTRA_CLANG_ARGS_aarch64_apple_darwin=--target=arm64-apple-macosx\ -isysroot\ ${SDKROOT}
5760

5861
# ---------------------------------------------------------------------------

deploy/docker/Dockerfile.python-wheels-macos

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ ENV AR_aarch64_apple_darwin=aarch64-apple-darwin25.1-ar
4848
ENV CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=oa64-clang
4949
ENV CARGO_TARGET_AARCH64_APPLE_DARWIN_AR=aarch64-apple-darwin25.1-ar
5050
ENV SDKROOT=/osxcross/SDK/MacOSX.sdk
51+
ENV MACOSX_DEPLOYMENT_TARGET=13.3
52+
ENV CFLAGS_aarch64_apple_darwin=--target=arm64-apple-macosx\ -mmacosx-version-min=13.3
53+
ENV CXXFLAGS_aarch64_apple_darwin=--target=arm64-apple-macosx\ -mmacosx-version-min=13.3
5154
ENV BINDGEN_EXTRA_CLANG_ARGS_aarch64_apple_darwin=--target=arm64-apple-macosx\ -isysroot\ ${SDKROOT}
5255

5356
# Copy dependency manifests first for better caching.

0 commit comments

Comments
 (0)