Bug 1481549: Configure changes to enable the launcher process by default; r=froydnj
authorAaron Klotz <aklotz@mozilla.com>
Mon, 23 Jul 2018 15:58:45 -0600
changeset 430711 d66ee21ada943bde8752ca3cb1f77470cac2da21
parent 430710 0bcce164a404b4a53f123bdf87f2db645a3c8548
child 430712 9e3106a824d27f327e5dd9178f7e00aa8703f731
push id34410
push usertoros@mozilla.com
push dateThu, 09 Aug 2018 10:02:47 +0000
treeherdermozilla-central@f650c0df72f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1481549
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1481549: Configure changes to enable the launcher process by default; r=froydnj In order to start Firefox via the launcher process, we currently need to pass a command-line flag. If we are to eventually ship the launcher by default, we want to be able to configure the build such that the launcher process is used by default, without any special flags. This patch simply adds the configure option and sets the config and defines appropriately.
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -1043,8 +1043,24 @@ option('--with-unsigned-addon-scopes',
 def unsigned_addon_scopes(scopes):
     return namespace(
         app='app' in scopes or None,
         system='system' in scopes or None,
     )
 
 set_config('MOZ_UNSIGNED_APP_SCOPE', unsigned_addon_scopes.app)
 set_config('MOZ_UNSIGNED_SYSTEM_SCOPE', unsigned_addon_scopes.system)
+
+# Launcher process (Windows only)
+# ==============================================================
+
+option('--enable-launcher-process', help='Enable launcher process by default')
+
+@depends('--enable-launcher-process', target)
+def launcher(value, target):
+    enabled = bool(value)
+    if enabled and target.os != 'WINNT':
+        die('Cannot enable launcher process on %s', target.os)
+    if enabled:
+        return True
+
+set_config('MOZ_LAUNCHER_PROCESS', launcher)
+set_define('MOZ_LAUNCHER_PROCESS', launcher)