Skip to content

Discard known '-O' flags, including just '-O', but do not remove only '-O' in '-Ounknown' #9647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 22, 2024

Conversation

arnaud-lb
Copy link
Member

Fixes #9645

@arnaud-lb arnaud-lb marked this pull request as ready for review September 30, 2022 16:07
@arnaud-lb arnaud-lb requested review from petk and derickr January 13, 2023 11:36
@petk
Copy link
Member

petk commented Jan 18, 2023

This seems ok, but then also several other places will need to be changed probably. Are there any compilation steps how the empty g gets entered in the C flags?

@arnaud-lb
Copy link
Member Author

also several other places will need to be changed probably

Indeed! Thank you. I've updated these places as well

I don't know enough of the build system to be able to factor this out, though

@arnaud-lb arnaud-lb merged commit 182fee1 into php:master May 22, 2024
arnaud-lb added a commit to arnaud-lb/php-src that referenced this pull request Sep 10, 2024
Discard known '-O' flags, including just '-O', but do not remove only '-O' in '-Ounknown'
arnaud-lb added a commit that referenced this pull request Sep 12, 2024
Discard known '-O' flags, including just '-O', but do not remove only '-O' in '-Ounknown'
arnaud-lb added a commit that referenced this pull request Sep 12, 2024
* PHP-8.2:
  Do not remove -O0 in the middle of a flag
  Fix removal of optimization cflags in debug builds (#9647)
arnaud-lb added a commit that referenced this pull request Sep 12, 2024
* PHP-8.3:
  Do not remove -O0 in the middle of a flag
  Fix removal of optimization cflags in debug builds (#9647)
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.

php extension and "CFLAGS=.. -Og ..."
3 participants