Bug 565191: Add --with-debug-label to js. r=ted
authorJustin Wood <Callek@gmail.com>
Thu, 17 Jun 2010 18:43:13 -0700
changeset 43767 edaefa8963ac88c026503af92aafe0bf3276107d
parent 43766 598c5f8d295cb5e1456e55cd512758d6c3498df2
child 43769 fc44e87ff337ba2ac27113851edaccf482bce06f
push id13896
push userme@kylehuey.com
push dateFri, 18 Jun 2010 04:58:55 +0000
treeherdermozilla-central@edaefa8963ac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs565191
milestone1.9.3a6pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 565191: Add --with-debug-label to js. r=ted
js/src/configure.in
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -4142,16 +4142,24 @@ MOZ_ARG_ENABLE_STRING(debug,
         _MOZ_DEBUG_FLAGS_SET=1
     fi
   else
     MOZ_DEBUG=
   fi ],
   MOZ_DEBUG=)
 
 MOZ_DEBUG_ENABLE_DEFS="-DDEBUG -D_DEBUG -DTRACING"
+MOZ_ARG_WITH_STRING(debug-label,
+[  --with-debug-label=LABELS
+                           Enabled the use of DEBUG_label ifdefs
+                           (comma separated)],
+[ for option in `echo $withval | sed 's/,/ /g'`; do
+    MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_${option}"
+done])
+
 
 MOZ_DEBUG_DISABLE_DEFS="-DNDEBUG -DTRIMMED"
 
 if test -n "$MOZ_DEBUG"; then
     AC_MSG_CHECKING([for valid debug flags])
     _SAVE_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS"
     AC_TRY_COMPILE([#include <stdio.h>],