Skip to content

Enable BOLT on aarch64-unknown-linux-gnu - #1191

Draft
jjhelmus wants to merge 7 commits into
mainfrom
jjh/aarch64_bolt
Draft

Enable BOLT on aarch64-unknown-linux-gnu#1191
jjhelmus wants to merge 7 commits into
mainfrom
jjh/aarch64_bolt

Conversation

@jjhelmus

@jjhelmus jjhelmus commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Enable BOLT optimization during CPython build on the aarch64-unknown-linux-gnu platform.

To avoid llvm/llvm-project#146541 the _ctypes extension is built as a shared module, causing the libffi trampoline code to exists in the extension rather than the python binary.

An alternative is to disable these static trampolines using --disable-exec-static-tramp when building libffi but this requires writable and executable memory segments which comes with security risks.

@jjhelmus jjhelmus added platform:darwin Specific to the macOS platform platform:linux Specific to the Linux platform arch:all Select all architectures build:all python:all Select all Python versions labels Jul 24, 2026
jjhelmus added 5 commits July 24, 2026 13:18
Prevent the definition-matching regex from consuming whitespace between
compiler arguments. Only definitions containing an explicit assignment
should be moved into Makefile.extra. Other definitions should remain in
Setup.local.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch:all Select all architectures build:all platform:darwin Specific to the macOS platform platform:linux Specific to the Linux platform python:all Select all Python versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant