Skip to content

gh-57449: Define USE_COMPUTED_GOTOS in configure by default - #162516

Open
vasiliyk wants to merge 1 commit into
python:mainfrom
vasiliyk:gh-57449-gotos
Open

vasiliyk wants to merge 1 commit into
python:mainfrom
vasiliyk:gh-57449-gotos

Conversation

@vasiliyk

@vasiliyk vasiliyk commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

sysconfig.get_config_var('USE_COMPUTED_GOTOS') returned 0 on default builds even though computed gotos were enabled.

configure now sets it to 1 when the compiler supports computed gotos and no option is given.

When the compiler supports computed gotos and no --with(out)-computed-gotos
option is given, define USE_COMPUTED_GOTOS to 1 in pyconfig.h so that
sysconfig matches what ceval_macros.h already does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant