◐ Shell
clean mode source ↗

gh-54872: Remove default OPT=-O for non-GCC compilers by bobzinin · Pull Request #142159 · python/cpython

@bobzinin

The configure script was setting OPT="-O" by default for non-GCC compilers, which could conflict with user-specified CFLAGS. This change removes the automatic default, allowing users full control over optimization flags via CFLAGS without unexpected conflicts.

The configure script was setting OPT="-O" by default for non-GCC
compilers, which could conflict with user-specified CFLAGS. This
change removes the automatic default, allowing users full control
over optimization flags via CFLAGS without unexpected conflicts.

@bedevere-app

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bobzinin bobzinin changed the title gh-54972: Remove default OPT=-O for non-GCC compilers gh-54872: Remove default OPT=-O for non-GCC compilers

Dec 1, 2025

@python-cla-bot

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@StanFromIreland

You need to run make regen-configure.

@bedevere-app

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@github-actions

This PR is stale because it has been open for 30 days with no activity.