Bug 784741 - Unbreak --enable-debug --disable-methodjit on platforms without YarrJIT support. r=dmandelin
authorJan Beich <jbeich@tormail.org>
Wed, 22 Aug 2012 21:28:47 -0400
changeset 105142 1b51b88d45aff5db803d756af07aea8ad3951b7b
parent 105141 fa9bc5be6d9b92563811e4d3b89a96cc64fab50d
child 105143 ea2cf37ddf54274777564f0da81f4e58cdd78d81
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersdmandelin
bugs784741
milestone17.0a1
Bug 784741 - Unbreak --enable-debug --disable-methodjit on platforms without YarrJIT support. r=dmandelin
js/src/configure.in
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -3342,17 +3342,20 @@ if test -z "$MOZ_DEBUG_FLAGS"; then
   MOZ_DEBUG_FLAGS="-g"
 fi
 
 MOZ_ARG_ENABLE_STRING(debug,
 [  --enable-debug[=DBG]    Enable building with developer debug info
                            (using compiler flags DBG)],
 [ if test "$enableval" != "no"; then
     MOZ_DEBUG=1
-    ENABLE_METHODJIT_SPEW=1
+    if test "$ENABLE_METHODJIT"; then
+         # needs MethodJIT or YarrJIT
+         ENABLE_METHODJIT_SPEW=1
+    fi
     if test -n "$enableval" -a "$enableval" != "yes"; then
         MOZ_DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
         _MOZ_DEBUG_FLAGS_SET=1
     fi
   else
     MOZ_DEBUG=
   fi ],
   MOZ_DEBUG=)