Bug 1428357 - Change ABI used in app update URL for ASan builds. r?rstrong,bhearsum draft
authorChristian Holler <choller@mozilla.com>
Wed, 24 Jan 2018 19:25:23 +0100
changeset 724405 8e192301cd53b5a3bf826e8fe0b168c7ff77d0f8
parent 724404 32b850fa28ae1c29039cb7ddcdfd71b324762c05
child 747144 4a5518a9348144b48a6fe7956e2d0813dfe2af13
child 748377 a484aa950215ee9886f9717091d62d6c2ca6e755
child 748379 7c03c352a53017dc7df49542b82bd598187fb6e4
push id96740
push usercholler@mozilla.com
push dateWed, 24 Jan 2018 22:30:18 +0000
reviewersrstrong, bhearsum
bugs1428357
milestone60.0a1
Bug 1428357 - Change ABI used in app update URL for ASan builds. r?rstrong,bhearsum MozReview-Commit-ID: 4fxosdR5od3
toolkit/modules/UpdateUtils.jsm
--- a/toolkit/modules/UpdateUtils.jsm
+++ b/toolkit/modules/UpdateUtils.jsm
@@ -256,16 +256,22 @@ XPCOMUtils.defineLazyGetter(UpdateUtils,
 
     if (macutils.isUniversalBinary) {
       abi += "-u-" + macutils.architecturesInBinary;
     }
   } else if (AppConstants.platform == "win") {
     // Windows build should report the CPU architecture that it's running on.
     abi += "-" + gWinCPUArch;
   }
+
+  if (AppConstants.ASAN) {
+    // Allow ASan builds to receive their own updates
+    abi += "-asan";
+  }
+
   return abi;
 });
 
 XPCOMUtils.defineLazyGetter(UpdateUtils, "OSVersion", function() {
   let osVersion;
   try {
     osVersion = Services.sysinfo.getProperty("name") + " " +
                 Services.sysinfo.getProperty("version");