Bug 1504844 - Log a reason when the build driver decides to run configure. r=firefox-build-system-reviewers,nalexander

Differential Revision: https://phabricator.services.mozilla.com/D10966

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Chris Manchester 2018-11-06 00:03:48 +00:00
Родитель 9c7c0083ad
Коммит 666f758a38
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -992,8 +992,10 @@ class BuildDriver(MozbuildObject):
def build_out_of_date(output, dep_file):
if not os.path.isfile(output):
print(" Output reference file not found: %s" % output)
return True
if not os.path.isfile(dep_file):
print(" Configure dependency file not found: %s" % dep_file)
return True
deps = []
@ -1006,9 +1008,11 @@ class BuildDriver(MozbuildObject):
dep_mtime = os.path.getmtime(f)
except OSError as e:
if e.errno == errno.ENOENT:
print(" Configure input not found: %s" % f)
return True
raise
if dep_mtime > mtime:
print(" %s is out of date with respect to %s" % (output, f))
return True
return False
@ -1059,6 +1063,9 @@ class BuildDriver(MozbuildObject):
if previous_backend and 'Make' not in previous_backend:
clobber_requested = self._clobber_configure()
if config is None:
print(" Config object not found by mach.")
config_rc = self.configure(buildstatus_messages=True,
line_handler=output.on_line)