Bug 565191 - Add build option "--with-debug-label". r=ted
authorJustin Wood <Callek@gmail.com>
Wed, 19 May 2010 16:37:11 -0400
changeset 42838 42f90d3591da0463928d048652b70fac602ce3c2
parent 42837 f223c7d06f91c3839b9f62c1d67a24978609da3f
child 42839 ba366a4ba8faf2d976dda1fcadbcac62f216235d
push id13465
push userdholbert@mozilla.com
push dateWed, 26 May 2010 20:02:53 +0000
treeherdermozilla-central@ba366a4ba8fa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs565191
milestone1.9.3a5pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 565191 - Add build option "--with-debug-label". r=ted
configure.in
--- a/configure.in
+++ b/configure.in
@@ -6954,16 +6954,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"
+MOZ_ARG_WITH_STRING(debug-label,
+[  --with-debug-label=LABELS
+                           Define DEBUG_<value> for each comma-separated
+                           value given.],
+[ for option in `echo $withval | sed 's/,/ /g'`; do
+    MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_${option}"
+done])
+
  case "${target_os}" in
     beos*)
         MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_${USER}"
         ;;
     msvc*|mks*|cygwin*|mingw*|os2*|wince*|winmo*)
         MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
         ;;
     *)