Bug 1293981 - Move --enable-gc-trace to moz.configure. r=chmanchester
authorMs2ger <Ms2ger@gmail.com>
Wed, 10 Aug 2016 13:06:40 +0200
changeset 350478 030611acd76621132c94f39bf5a6cb98625157aa
parent 350477 977e775db17eb654e0bb8ba8b9998a6e2e81d801
child 350479 8c040933f2593ef4771cdb187f66cadcb4b2b5ea
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschmanchester
bugs1293981
milestone51.0a1
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 1293981 - Move --enable-gc-trace to moz.configure. r=chmanchester
build/moz.configure/old.configure
js/moz.configure
js/src/old-configure.in
--- a/build/moz.configure/old.configure
+++ b/build/moz.configure/old.configure
@@ -176,17 +176,16 @@ def old_configure_options(*options):
     '--enable-directshow',
     '--enable-dtrace',
     '--enable-dump-painting',
     '--enable-elf-hack',
     '--enable-extensions',
     '--enable-faststripe',
     '--enable-feeds',
     '--enable-gamepad',
-    '--enable-gc-trace',
     '--enable-gconf',
     '--enable-gczeal',
     '--enable-gio',
     '--enable-gnomeui',
     '--enable-gold',
     '--enable-gps-debug',
     '--enable-hardware-aec-ns',
     '--enable-icf',
--- a/js/moz.configure
+++ b/js/moz.configure
@@ -167,8 +167,19 @@ js_option('--enable-vtune', env='MOZ_VTU
 
 @depends('--enable-vtune')
 def vtune(value):
     if value:
         return True
 
 set_config('MOZ_VTUNE', vtune)
 set_define('MOZ_VTUNE', vtune)
+
+
+js_option('--enable-gc-trace', env='JS_GC_TRACE',
+          help='Enable tracing of allocation and finalization')
+
+@depends('--enable-gc-trace')
+def gc_trace(value):
+    if value:
+        return True
+
+set_define('JS_GC_TRACE', gc_trace)
--- a/js/src/old-configure.in
+++ b/js/src/old-configure.in
@@ -1748,27 +1748,16 @@ MOZ_ARG_ENABLE_BOOL(small-chunk-size,
 [  --enable-small-chunk-size  Allocate memory for JS GC things in smaller chunks],
     JS_GC_SMALL_CHUNK_SIZE=1,
     JS_GC_SMALL_CHUNK_SIZE= )
 if test -n "$JS_GC_SMALL_CHUNK_SIZE"; then
     AC_DEFINE(JS_GC_SMALL_CHUNK_SIZE)
 fi
 
 dnl ========================================================
-dnl = Use GC tracing
-dnl ========================================================
-MOZ_ARG_ENABLE_BOOL(gc-trace,
-[  --enable-gc-trace  Enable tracing of allocation and finalization],
-    JS_GC_TRACE=1,
-    JS_GC_TRACE= )
-if test -n "$JS_GC_TRACE"; then
-    AC_DEFINE(JS_GC_TRACE)
-fi
-
-dnl ========================================================
 dnl = Use Valgrind
 dnl ========================================================
 MOZ_ARG_ENABLE_BOOL(valgrind,
 [  --enable-valgrind       Enable Valgrind integration hooks (default=no)],
     MOZ_VALGRIND=1,
     MOZ_VALGRIND= )
 if test -n "$MOZ_VALGRIND"; then
     MOZ_CHECK_HEADER([valgrind/valgrind.h], [],