Bug 1475390 - Fail configure if Tup is specified on a non-linux build. r=gps
authorChris Manchester <cmanchester@mozilla.com>
Fri, 13 Jul 2018 15:53:27 -0700
changeset 426590 b3eb58b5214a
parent 426589 703da935b1e0
child 426591 abc9aece7e63
push id34276
push userncsoregi@mozilla.com
push date2018-07-14 09:41 +0000
treeherdermozilla-central@04dd259d71db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1475390
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 1475390 - Fail configure if Tup is specified on a non-linux build. r=gps MozReview-Commit-ID: FO6wCbI7YwJ
build/moz.configure/tup.configure
--- a/build/moz.configure/tup.configure
+++ b/build/moz.configure/tup.configure
@@ -50,16 +50,22 @@ def tup_and_sccache(tup, using_sccache):
 
 @depends(tup, rustc_info)
 def check_tup_min_rustc_version(tup, rustc_info):
     min_rustc_version = Version('1.28.0')
     if tup and rustc_info.version < min_rustc_version:
         die('Cannot build with tup and rustc %s. please update to at least '
             'rustc %s to continue.', rustc_info.version, min_rustc_version)
 
+@depends(tup, target, build_project)
+def tup_and_non_linux(tup, target, build_project):
+    if tup and (target.kernel != 'Linux' or build_project != 'browser'):
+        die('The tup backend can only be used to build the browser on Linux. '
+            'Use the make backend until your target is supported.')
+
 option('--upload-tup-db', help= 'Upload the tup database from an automated build.')
 
 @depends('--upload-tup-db')
 def upload_tdb(value):
     if value:
         return True
 
 set_config('UPLOAD_TUP_DB', upload_tdb)