From 518ffda5ecfa0122e2a1e0c9721846c0abb62b30 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 11 Nov 2024 09:12:57 -0600 Subject: [PATCH] Use mimalloc on all Python 3.13 builds Previously, it was only used for the freethreaded builds --- cpython-unix/build-cpython.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpython-unix/build-cpython.sh b/cpython-unix/build-cpython.sh index eb1fe7b7..e5e7d73a 100755 --- a/cpython-unix/build-cpython.sh +++ b/cpython-unix/build-cpython.sh @@ -355,8 +355,12 @@ if [ -n "${CPYTHON_DEBUG}" ]; then CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-pydebug" fi +if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}"; then + CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-mimalloc" +fi + if [ -n "${CPYTHON_FREETHREADED}" ]; then - CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --disable-gil --with-mimalloc" + CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --disable-gil" fi if [ -n "${CPYTHON_OPTIMIZED}" ]; then