Skip to content

Commit

Permalink
Use mimalloc on all Python 3.13 builds
Browse files Browse the repository at this point in the history
Previously, it was only used for the freethreaded builds
  • Loading branch information
zanieb committed Nov 11, 2024
1 parent e8b031b commit 518ffda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 518ffda

Please sign in to comment.