Bug 731936 - Optimizations are disabled in NSPR when using --enable-optimize in mozconfig. r=khuey.
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Mon, 05 Mar 2012 15:09:36 -0300
changeset 91165 bfdf82d12fa077fe7eaa190141601e185bb90fc2
parent 91164 7f5e40eb37c1653f35f7d1e8713627fa4fbd1512
child 91166 9fcb60770cc8b22ba56c7a7b0e6c574dba9d35a8
push idunknown
push userunknown
push dateunknown
reviewerskhuey
bugs731936
milestone13.0a1
Bug 731936 - Optimizations are disabled in NSPR when using --enable-optimize in mozconfig. r=khuey.
configure.in
--- a/configure.in
+++ b/configure.in
@@ -9207,17 +9207,17 @@ if test -z "$MOZ_NATIVE_NSPR"; then
     ac_configure_args="$_SUBDIR_CONFIG_ARGS --with-dist-prefix=$MOZ_BUILD_ROOT/dist --with-mozilla"
     if test -z "$MOZ_DEBUG"; then
         ac_configure_args="$ac_configure_args --disable-debug"
     else
         ac_configure_args="$ac_configure_args --enable-debug"
     fi
     if test "$MOZ_OPTIMIZE" = "1"; then
         ac_configure_args="$ac_configure_args --enable-optimize"
-    else
+    elif test -z "$MOZ_OPTIMIZE"; then
         ac_configure_args="$ac_configure_args --disable-optimize"
     fi
     if test -n "$HAVE_64BIT_OS"; then
         ac_configure_args="$ac_configure_args --enable-64bit"
     fi
     if test -n "$USE_ARM_KUSER"; then
         ac_configure_args="$ac_configure_args --with-arm-kuser"
     fi