Browse Source

Disable assertions for release build.

Joshua Haberman 5 years ago
parent
commit
e1b42ab946
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/tests/compile_extension.sh

+ 1 - 1
php/tests/compile_extension.sh

@@ -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'