diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-01 23:14:53 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-01 23:14:53 +0200 |
commit | 84d7317168c614ac5e83b0012622987690d643df (patch) | |
tree | 5c7c704e6911ae58b8363c2be10f1f99c02a9ca8 /toolkit/mozapps/installer/packager.py | |
parent | b25f1991c8aa410f95b4fe26fde6e653e21b8efd (diff) | |
download | UXP-84d7317168c614ac5e83b0012622987690d643df.tar UXP-84d7317168c614ac5e83b0012622987690d643df.tar.gz UXP-84d7317168c614ac5e83b0012622987690d643df.tar.lz UXP-84d7317168c614ac5e83b0012622987690d643df.tar.xz UXP-84d7317168c614ac5e83b0012622987690d643df.zip |
Move the MOZ_DISABLE_PRECOMPILED_STARTUPCACHE check.
Diffstat (limited to 'toolkit/mozapps/installer/packager.py')
-rw-r--r-- | toolkit/mozapps/installer/packager.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/toolkit/mozapps/installer/packager.py b/toolkit/mozapps/installer/packager.py index 40f31646a..1a144823c 100644 --- a/toolkit/mozapps/installer/packager.py +++ b/toolkit/mozapps/installer/packager.py @@ -156,16 +156,15 @@ def precompile_cache(registry, source_path, gre_path, app_path): extra_env['TSAN_OPTIONS'] = 'report_bugs=0' if buildconfig.substs.get('MOZ_ASAN'): 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, - '-f', os.path.join(os.path.dirname(__file__), - 'precompile_cache.js'), - '-e', 'precompile_startupcache("resource://%s/");' - % resource], - extra_linker_path=gre_path, - extra_env=extra_env): - errors.fatal('Error while running startup cache precompilation') - return + if launcher.launch(['xpcshell', '-g', gre_path, '-a', app_path, + '-f', os.path.join(os.path.dirname(__file__), + 'precompile_cache.js'), + '-e', 'precompile_startupcache("resource://%s/");' + % resource], + extra_linker_path=gre_path, + extra_env=extra_env): + errors.fatal('Error while running startup cache precompilation') + return from mozpack.mozjar import JarReader jar = JarReader(cache) resource = '/resource/%s/' % resource @@ -392,7 +391,8 @@ def main(): # Fill startup cache if isinstance(formatter, OmniJarFormatter) and launcher.can_launch() \ - and buildconfig.substs['MOZ_DISABLE_STARTUPCACHE'] != '1': + and buildconfig.substs['MOZ_DISABLE_STARTUPCACHE'] != '1' \ + and buildconfig.substs['MOZ_DISABLE_PRECOMPILED_STARTUPCACHE'] != '1': gre_path = None def get_bases(): for b in sink.packager.get_bases(addons=False): |