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
--- 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):