Bug 1293981 - Move --enable-perf to moz.configure. r=chmanchester

This commit is contained in:
Ms2ger 2016-08-10 13:06:49 +02:00
parent a7c2d8106c
commit dc662f1b94
3 changed files with 11 additions and 13 deletions

View File

@ -214,7 +214,6 @@ def old_configure_options(*options):
'--enable-oom-breakpoint',
'--enable-optimize',
'--enable-parental-controls',
'--enable-perf',
'--enable-permissions',
'--enable-pie',
'--enable-png-arm-neon-support',

View File

@ -183,3 +183,14 @@ def gc_trace(value):
return True
set_define('JS_GC_TRACE', gc_trace)
js_option('--enable-perf', env='JS_ION_PERF',
help='Enable Linux perf integration')
@depends('--enable-perf')
def ion_perf(value):
if value:
return True
set_define('JS_ION_PERF', ion_perf)

View File

@ -1919,18 +1919,6 @@ if test -n "$JS_GC_ZEAL" -o -n "$MOZ_DEBUG"; then
AC_DEFINE(JS_GC_ZEAL)
fi
dnl ========================================================
dnl = Enable perf logging for ion.
dnl = Perf logging is OFF by default
dnl ========================================================
MOZ_ARG_ENABLE_BOOL(perf,
[ --enable-perf Enable Linux perf integration],
JS_ION_PERF=1,
JS_ION_PERF= )
if test -n "$JS_ION_PERF"; then
AC_DEFINE(JS_ION_PERF)
fi
dnl ========================================================
dnl Enable changes that make the shell more deterministic
dnl ========================================================