Disable assertions for release build.

This commit is contained in:
Joshua Haberman 2020-10-15 10:58:11 -07:00
parent 4936abe813
commit e1b42ab946

View File

@ -10,7 +10,7 @@ rm -f configure.in configure.ac
php make-preload.php
phpize
if [ "$1" = "--release" ]; then
./configure --with-php-config=$(which php-config)
./configure --with-php-config=$(which php-config) CFLAGS="-DNDEBUG"
else
# To get debugging symbols in PHP itself, build PHP with:
# $ ./configure --enable-debug CFLAGS='-g -O0'