mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: Do not remove -O0 in the middle of a flag Fix removal of optimization cflags in debug builds (#9647)
This commit is contained in:
commit
c21899a9f0
3 changed files with 15 additions and 15 deletions
|
@ -104,11 +104,7 @@ dnl Discard optimization flags when debugging is enabled.
|
|||
AS_VAR_IF([PHP_DEBUG], [yes], [
|
||||
PHP_DEBUG=1
|
||||
ZEND_DEBUG=yes
|
||||
changequote({,})
|
||||
dnl Discard known '-O...' flags, including just '-O', but do not remove only '-O' in '-Ounknown'
|
||||
CFLAGS=$(echo "$CFLAGS" | $SED -e 's/-O\([0-9gsz]\|fast\|\)\([\t ]\|$\)//g')
|
||||
CXXFLAGS=$(echo "$CXXFLAGS" | $SED -e 's/-O\([0-9gsz]\|fast\|\)\([\t ]\|$\)//g')
|
||||
changequote([,])
|
||||
PHP_REMOVE_OPTIMIZATION_FLAGS
|
||||
dnl Add -O0 only if GCC or ICC is used.
|
||||
if test "$GCC" = "yes" || test "$ICC" = "yes"; then
|
||||
CFLAGS="$CFLAGS -O0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue