Explorar el Código

Disable assertions for release build.

Joshua Haberman hace 5 años
padre
commit
e1b42ab946
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 php make-preload.php
 phpize
 phpize
 if [ "$1" = "--release" ]; then
 if [ "$1" = "--release" ]; then
-  ./configure --with-php-config=$(which php-config)
+  ./configure --with-php-config=$(which php-config) CFLAGS="-DNDEBUG"
 else
 else
   # To get debugging symbols in PHP itself, build PHP with:
   # To get debugging symbols in PHP itself, build PHP with:
   #   $ ./configure --enable-debug CFLAGS='-g -O0'
   #   $ ./configure --enable-debug CFLAGS='-g -O0'