diff --git a/js/src/configure.in b/js/src/configure.in index 640497fa630..d11660e23d0 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -4147,6 +4147,14 @@ MOZ_ARG_ENABLE_STRING(debug, 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"