Bug 999913 - Enable replace-malloc on nightly builds. r=mshal
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 01 May 2014 10:57:48 +0900
changeset 184507 a9f95997fe57
parent 184506 0c5047d370fc
child 184508 d18ebc644b89
push id43870
push usermh@glandium.org
push date2014-05-23 00:19 +0000
Treeherderresults
reviewersmshal
bugs999913
milestone32.0a1
Bug 999913 - Enable replace-malloc on nightly builds. r=mshal
configure.in
--- a/configure.in
+++ b/configure.in
@@ -6934,16 +6934,20 @@ else
   if test "$MOZ_LINKER" = 1; then
     MOZ_GLUE_PROGRAM_LDFLAGS="$MOZ_GLUE_PROGRAM_LDFLAGS $MOZ_ZLIB_LIBS"
   fi
 fi
 
 dnl ========================================================
 dnl = Enable dynamic replacement of malloc implementation
 dnl ========================================================
+if test -n "$NIGHTLY_BUILD" -a -n "$MOZ_MEMORY"; then
+  # Enable on central for the debugging opportunities it adds.
+  MOZ_REPLACE_MALLOC=1
+fi
 MOZ_ARG_ENABLE_BOOL(replace-malloc,
 [  --enable-replace-malloc   Enable ability to dynamically replace the malloc implementation],
     MOZ_REPLACE_MALLOC=1,
     MOZ_REPLACE_MALLOC= )
 
 dnl The two options are conflicting. Fails the configure to alert the user.
 if test "$NS_TRACE_MALLOC" -a "$MOZ_REPLACE_MALLOC"; then
     AC_MSG_ERROR([--enable-trace-malloc and --enable-replace-malloc are conflicting options])