зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9c7c0083ad
Коммит
666f758a38
|
@ -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)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче