Explorar o código

Put NDEBUG in upb, not in CFLAGS.

Joshua Haberman %!s(int64=5) %!d(string=hai) anos
pai
achega
8ea38263ec
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 2 0
      php/ext/google/protobuf/php-upb.h
  2. 1 1
      php/tests/compile_extension.sh

+ 2 - 0
php/ext/google/protobuf/php-upb.h

@@ -1,3 +1,5 @@
+#define NDEBUG
+
 /* Amalgamated source file */
 #include <stdint.h>/*
 * This is where we define macros used across upb.

+ 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) CFLAGS="-DNDEBUG"
+  ./configure --with-php-config=$(which php-config)
 else
   # To get debugging symbols in PHP itself, build PHP with:
   #   $ ./configure --enable-debug CFLAGS='-g -O0'