mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Add build config option to disable startup cache precompilation.
This resolves #418.
This commit is contained in:
parent
199c3900f8
commit
aad4417153
2 changed files with 26 additions and 9 deletions
|
|
@ -4422,6 +4422,22 @@ MOZ_ARG_ENABLE_BOOL(debug-js-modules,
|
||||||
|
|
||||||
AC_SUBST(DEBUG_JS_MODULES)
|
AC_SUBST(DEBUG_JS_MODULES)
|
||||||
|
|
||||||
|
dnl ========================================================
|
||||||
|
dnl = Don't precompile the startup cache
|
||||||
|
dnl ========================================================
|
||||||
|
MOZ_DISABLE_PRECOMPILED_STARTUPCACHE=
|
||||||
|
|
||||||
|
MOZ_ARG_DISABLE_BOOL(precompiled-startupcache,
|
||||||
|
[ --disable-precompiled-startupcache Don't precompile the startup cache ],
|
||||||
|
MOZ_DISABLE_PRECOMPILED_STARTUPCACHE=1,
|
||||||
|
MOZ_DISABLE_PRECOMPILED_STARTUPCACHE= )
|
||||||
|
|
||||||
|
if test -n "$MOZ_DISABLE_PRECOMPILED_STARTUPCACHE"; then
|
||||||
|
AC_DEFINE(MOZ_DISABLE_PRECOMPILED_STARTUPCACHE)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(MOZ_DISABLE_PRECOMPILED_STARTUPCACHE)
|
||||||
|
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
dnl =
|
dnl =
|
||||||
dnl = Profiling and Instrumenting
|
dnl = Profiling and Instrumenting
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,7 @@ def precompile_cache(registry, source_path, gre_path, app_path):
|
||||||
extra_env['TSAN_OPTIONS'] = 'report_bugs=0'
|
extra_env['TSAN_OPTIONS'] = 'report_bugs=0'
|
||||||
if buildconfig.substs.get('MOZ_ASAN'):
|
if buildconfig.substs.get('MOZ_ASAN'):
|
||||||
extra_env['ASAN_OPTIONS'] = 'detect_leaks=0'
|
extra_env['ASAN_OPTIONS'] = 'detect_leaks=0'
|
||||||
|
if buildconfig.substs.get('MOZ_DISABLE_PRECOMPILED_STARTUPCACHE') != '1':
|
||||||
if launcher.launch(['xpcshell', '-g', gre_path, '-a', app_path,
|
if launcher.launch(['xpcshell', '-g', gre_path, '-a', app_path,
|
||||||
'-f', os.path.join(os.path.dirname(__file__),
|
'-f', os.path.join(os.path.dirname(__file__),
|
||||||
'precompile_cache.js'),
|
'precompile_cache.js'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue