From c2b004d02489ae56a71bbfc170b14283b0af51e0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 27 Sep 2026 12:20:38 +0000 Subject: [PATCH 1/2] Update libomp build to LLVM 23.1.2 LLVM 23 removed the legacy standalone openmp build, so build it via the runtimes directory with -DLLVM_ENABLE_RUNTIMES=openmp. Also avoid failing on unset MACOSX_DEPLOYMENT_TARGET under set -u. Co-Authored-By: Claude Opus 5.5 --- build_utils/build_libomp.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build_utils/build_libomp.sh b/build_utils/build_libomp.sh index fd25797..0912585 100644 --- a/build_utils/build_libomp.sh +++ b/build_utils/build_libomp.sh @@ -2,16 +2,18 @@ set -euo pipefail DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" build_dir=${DIR}/libs_build -LLVM_VERSION=${LLVM_VERSION:-19.1.1} +LLVM_VERSION=${LLVM_VERSION:-23.1.2} INSTALL_CMD=${INSTALL_CMD:-"sudo make install"} -echo MACOSX_DEPLOYMENT_TARGET $MACOSX_DEPLOYMENT_TARGET +echo MACOSX_DEPLOYMENT_TARGET ${MACOSX_DEPLOYMENT_TARGET:-} git clone --depth 1 --branch llvmorg-${LLVM_VERSION} https://github.com/llvm/llvm-project -pushd llvm-project/openmp +pushd llvm-project +# The legacy standalone build (cmake llvm-project/openmp) was removed in LLVM 23, +# openmp has to be built through the runtimes directory. mkdir build cd build -cmake -DCMAKE_C_COMPILER=${CC:-clang} -DCMAKE_CXX_COMPILER=${CXX:-clang++} ${CMAKE_FLAGS:-} .. +cmake -DCMAKE_C_COMPILER=${CC:-clang} -DCMAKE_CXX_COMPILER=${CXX:-clang++} -DLLVM_ENABLE_RUNTIMES=openmp ${CMAKE_FLAGS:-} ../runtimes make ${MAKE_FLAGS:-} ${INSTALL_CMD} From 78f55ecd15cd0ceb48ecffcd0579d0595b6599f4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 27 Sep 2026 22:01:47 +0000 Subject: [PATCH 2/2] Set macOS deployment target to 10.15 for libomp 23 libomp from LLVM 23 uses aligned_alloc, which requires macOS 10.15. cibuildwheel defaults before-all to MACOSX_DEPLOYMENT_TARGET=10.9. Co-Authored-By: Claude Opus 5.5 --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 52e1b96..ae19bf4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -133,6 +133,8 @@ build = "*64" enable = ["pypy"] [tool.cibuildwheel.macos] +# libomp (LLVM 23) uses aligned_alloc, available since macOS 10.15 +environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" } before-all = [ "set", "bash {project}/build_utils/build_libomp.sh",