Page MenuHomeFreeBSD

devel/llvm22: disable Python limited API for LLDB
Needs ReviewPublic

Authored by vishwin on Fri, Mar 27, 5:56 PM.

Details

Reviewers
brooks
Summary

LLDB's Python bits are declared to be compatible with 3.8 and later, using the CPython limited API to enforce this at the C level. However, the limited API is meant for system environments where only one Python interpreter/distribution is present at a time, and Python shebangs are not specific to a particular implementation. It is also to allow upstream to distribute "universal" binaries. We (FreeBSD) always shebang Python to the specific version/distribution/implementation especially since we allow multiple present at a time, plus our DEFAULT_VERSIONS framework, so the limited API becomes superfluous.

This is also needed to allow building with free-threaded Python, ie 3.13t (soon 3.14t and 3.15t), which is currently not compatible with the limited API. I've gotten another fix addressing a different build error merged upstream to this effect.

Test Plan

No need to land this before the next release, better if integrated into it.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 71744
Build 68627: arc lint + arc unit

Event Timeline

vishwin created this revision.