Skip to content

Commit

Permalink
Require mimalloc explicitly on all GNU Python 3.13 builds (#391)
Browse files Browse the repository at this point in the history
Previously, it was only explicitly required for the freethreaded builds

Closes #389
  • Loading branch information
zanieb authored Dec 17, 2024
1 parent 6a58ae1 commit ed051a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,14 @@ if [ -n "${CPYTHON_DEBUG}" ]; then
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-pydebug"
fi

# Explicitly enable mimalloc on 3.13+, it's already included by default but with this it'll fail
# if it's missing from the system. The MUSL builds do not supprt mimalloc yet.
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" && "${CC}" != "musl-clang" ]]; 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 ed051a7

Please sign in to comment.