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

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

parent 623e778f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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',
+12 −0
Original line number Diff line number Diff line
@@ -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]))
+0 −17
Original line number Diff line number Diff line
@@ -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
+0 −17
Original line number Diff line number Diff line
@@ -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