Bug 1462493 - Add a check to warn about sccache usage with tup; r?Build draft
authorMike Shal <mshal@mozilla.com>
Thu, 24 May 2018 15:10:17 -0400
changeset 800049 24a44d9515e568251d29cfbb3db5981aad2273dd
parent 800048 ef8f1f5dc14ad6d41db1c7bc7e023c8f85b13568
push id111243
push userbmo:mshal@mozilla.com
push dateFri, 25 May 2018 19:36:00 +0000
reviewersBuild
bugs1462493
milestone62.0a1
Bug 1462493 - Add a check to warn about sccache usage with tup; r?Build 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):