Bug 1462493 - Add a check to warn about sccache usage with tup; r=chmanchester
authorMike Shal <mshal@mozilla.com>
Thu, 24 May 2018 15:10:17 -0400
changeset 476669 87d27981670d8f01a9e25548c9cb3d090aa072bf
parent 476668 27450c1a3366015f16b07aef93dc817281d6c2d5
child 476670 68a506acf664f35a159311d3d8d00de003cbd3aa
push id1757
push userffxbld-merge
push dateFri, 24 Aug 2018 17:02:43 +0000
treeherdermozilla-release@736023aebdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschmanchester
bugs1462493
milestone62.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 1462493 - Add a check to warn about sccache usage with tup; r=chmanchester Unfortunately we don't support sccache in the tup backend yet. When we do, this check can be removed. MozReview-Commit-ID: GonsvGv3g5k
moz.configure
--- a/moz.configure
+++ b/moz.configure
@@ -431,16 +431,22 @@ def tup_is_ldpreload(tup):
                               'of tup compiled with the ldpreload dependency '
                               'checker. Either compile tup locally with '
                               'CONFIG_TUP_SERVER=ldpreload in your tup.config '
                               'file, or use the version from the toolchain '
                               'task via |./mach artifact toolchain '
                               '--from-build linux64-tup|')
     return True
 
+@depends_if(tup, using_sccache)
+def tup_and_sccache(tup, using_sccache):
+    if tup and using_sccache:
+        die('Cannot use sccache with tup yet. Please disable sccache or use '
+            'the make backend until it is supported.')
+
 # watchman detection
 # ==============================================================
 
 option(env='WATCHMAN', nargs=1, help='Path to the watchman program')
 
 @depends('WATCHMAN')
 @checking('for watchman', callback=lambda w: w.path if w else 'not found')
 def watchman(prog):