From 9f104b91f52a0da4e8de11e0be7ee0180977747b Mon Sep 17 00:00:00 2001 From: danceratopz Date: Wed, 15 Jul 2026 20:10:47 +0200 Subject: [PATCH 1/2] appveyor: fix VS2019 builds under CMake 4 The VS2019 image now ships CMake >= 4, which rejects the cmake_minimum_required(VERSION < 3.5) declared by Hunter 0.24.0's CMake scripts, so every VS2019 job fails at the test configure step (Hunter is only used for the test dependencies). Set CMAKE_POLICY_VERSION_MINIMUM=3.5 as an environment variable: unlike a -D option it also reaches Hunter's child cmake invocations and the packages it builds. CMake < 4 ignores it, so the VS2017 jobs are unaffected. --- appveyor.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index c9502e81..0f57bbfa 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,6 +10,10 @@ configuration: - Release environment: ARCH: amd64 + # Hunter 0.24.0's CMake scripts declare a minimum version below 3.5, which + # CMake >= 4 rejects. The environment variable (unlike -D) also reaches + # Hunter's child cmake invocations. Ignored by CMake < 4. + CMAKE_POLICY_VERSION_MINIMUM: 3.5 matrix: - VS: 2019 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 From d710338ed4422001570b2431281a4c6cd422ac80 Mon Sep 17 00:00:00 2001 From: danceratopz Date: Wed, 15 Jul 2026 20:11:00 +0200 Subject: [PATCH 2/2] circleci: build universal2 macOS wheels CircleCI's macOS runners are Apple silicon now, so the macos-release job produces arm64-only wheels tagged for the runner's OS (macosx_14_0). Cross-compile the wheel as universal2 (x86_64 + arm64) instead and set MACOSX_DEPLOYMENT_TARGET=11.0, so a single wheel covers every arm64 Mac and Intel Macs on Big Sur or newer. The architecture flags are exported for both compile steps: CMAKE_OSX_ARCHITECTURES for the cmake build of the static libraries and ARCHFLAGS/CFLAGS/LDFLAGS for the cffi extension; _PYTHON_HOST_PLATFORM makes the wheel platform tag match. The x86_64 slice is cross-compiled and not executed in CI. --- circle.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 2054c6d8..18674b7c 100644 --- a/circle.yml +++ b/circle.yml @@ -276,7 +276,17 @@ jobs: - test-python-package - run: name: "Build wheels" - command: sh scripts/ci/python_build_wheels.sh + # Build a universal2 (x86_64 + arm64) wheel. The architecture flags + # must reach both the cmake build of the static libraries and the + # cffi extension build. + command: | + export MACOSX_DEPLOYMENT_TARGET=11.0 + export CMAKE_OSX_ARCHITECTURES="arm64;x86_64" + export ARCHFLAGS="-arch arm64 -arch x86_64" + export CFLAGS="-arch arm64 -arch x86_64" + export LDFLAGS="-arch arm64 -arch x86_64" + export _PYTHON_HOST_PLATFORM="macosx-11.0-universal2" + sh scripts/ci/python_build_wheels.sh - store_artifacts: path: ~/project/dist destination: dist