Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,11 @@ if [ -n "${CPYTHON_OPTIMIZED}" ]; then
# https://github.com/python/cpython/issues/128514
# https://github.com/python/cpython/pull/134642
# https://github.com/llvm/llvm-project/issues/174191
BOLT_COMMON_FLAGS="-update-debug-sections -skip-funcs=RC4_options/1"
# BOLT's allocation combiner can remove required stack allocations in
# the HACL hash compressors, leaving frame-pointer-relative accesses
# below the x86-64 red zone. Match BOLT's `/N` suffix for local symbols.
# https://github.com/astral-sh/uv/issues/20618

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# https://github.com/astral-sh/uv/issues/20618
# https://github.com/astral-sh/python-build-standalone/issues/1186

BOLT_COMMON_FLAGS="-update-debug-sections -skip-funcs=RC4_options/1,sha256_update/.*,sha512_update/.*,PyBlake2_blake2b_compress/.*,PyBlake2_blake2s_compress/.*,update_block.*"
BOLT_APPLY_FLAGS="${BOLT_COMMON_FLAGS} \
-reorder-blocks=ext-tsp \
-reorder-functions=cdsort \
Expand Down
Loading