From 61d392274aabb2b03eb0bbfc86f9515b2a79028d Mon Sep 17 00:00:00 2001 From: XBeg9 Date: Thu, 12 Feb 2026 20:02:46 -0800 Subject: [PATCH] fix: add cibuildwheel arch overrides to avoid host-native AVX-512 compilation Force specific architectures for manylinux builds: - x86_64: Enable Haswell target - aarch64: Enable ARMv8A target --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d77eeab2..46805e35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -174,6 +174,15 @@ manylinux-aarch64-image = "manylinux_2_28" # Skip 32-bit builds and musllinux skip = ["*-manylinux_i686", "*-musllinux*"] +# Force specific architectures to avoid host-native AVX-512 compilation +[[tool.cibuildwheel.overrides]] +select = "*-manylinux_*_x86_64" +environment = { CMAKE_ARGS = "-DENABLE_HASWELL=ON" } + +[[tool.cibuildwheel.overrides]] +select = "*-manylinux_*_aarch64" +environment = { CMAKE_ARGS = "-DENABLE_ARMV8A=ON" } + [tool.cibuildwheel.macos] archs = ["arm64"] environment = { MACOSX_DEPLOYMENT_TARGET = "11.0" }