Commit 8a9448c7 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1641785 - Move --with-jitreport-granularity to python configure. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D77415
parent 623e778f
......@@ -243,7 +243,6 @@ def old_configure_options(*options):
'--with-branding',
'--with-distribution-id',
'--with-intl-api',
'--with-jitreport-granularity',
'--with-macbundlename-prefix',
'--with-nss-exec-prefix',
'--with-nss-prefix',
......
......@@ -708,3 +708,15 @@ def bundled_editline(readline, editline):
set_config('JS_BUNDLED_EDITLINE', bundled_editline)
set_define('EDITLINE', True, when=editline)
# JIT observers
# =============
js_option('--with-jitreport-granularity', default='3', choices=('0', '1', '2', '3'),
help='Default granularity at which to report JIT code to external tools '
'(0 - no info, 1 - code ranges for while functions only, '
'2 - per-line information, 3 - per-op information)')
set_define('JS_DEFAULT_JITREPORT_GRANULARITY',
depends_if('--with-jitreport-granularity')(lambda value: value[0]))
......@@ -1271,23 +1271,6 @@ if test -z "$SKIP_LIBRARY_CHECKS"; then
AC_LANG_RESTORE
fi
dnl ========================================================
dnl JIT observers
dnl ========================================================
MOZ_ARG_WITH_STRING(jitreport-granularity,
[ --jitreport-granularity=N
Default granularity at which to report JIT code
to external tools
0 - no info
1 - code ranges for whole functions only
2 - per-line information
3 - per-op information],
JITREPORT_GRANULARITY=$withval,
JITREPORT_GRANULARITY=3)
AC_DEFINE_UNQUOTED(JS_DEFAULT_JITREPORT_GRANULARITY, $JITREPORT_GRANULARITY)
dnl ========================================================
dnl =
dnl = Misc. Options
......
......@@ -2292,23 +2292,6 @@ if test -z "$SKIP_LIBRARY_CHECKS"; then
AC_LANG_RESTORE
fi
dnl ========================================================
dnl JIT observers
dnl ========================================================
MOZ_ARG_WITH_STRING(jitreport-granularity,
[ --jitreport-granularity=N
Default granularity at which to report JIT code
to external tools
0 - no info
1 - code ranges for whole functions only
2 - per-line information
3 - per-op information],
JITREPORT_GRANULARITY=$withval,
JITREPORT_GRANULARITY=3)
AC_DEFINE_UNQUOTED(JS_DEFAULT_JITREPORT_GRANULARITY, $JITREPORT_GRANULARITY)
dnl ========================================================
dnl =
dnl = Misc. Options
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment