mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 15:55:16 +00:00
Bug 865445 - Add 'configure' command to mach to rebuild the backend. r=gps
This commit is contained in:
parent
d454789d46
commit
ecdf115619
@ -195,6 +195,22 @@ class Build(MachCommandBase):
|
||||
print(FINDER_SLOW_MESSAGE % finder_percent)
|
||||
|
||||
|
||||
@Command('configure', help='Configure the tree (run configure and config.status')
|
||||
def configure(self):
|
||||
def on_line(line):
|
||||
self.log(logging.INFO, 'build_output', {'line': line}, '{line}')
|
||||
|
||||
status = self._run_make(srcdir=True, filename='client.mk',
|
||||
target='configure', line_handler=on_line, log=False,
|
||||
print_directory=False, allow_parallel=False, ensure_exit_code=False)
|
||||
|
||||
if not status:
|
||||
print('Configure complete!')
|
||||
print('Be sure to run |mach build| to pick up any changes');
|
||||
|
||||
return status
|
||||
|
||||
|
||||
@Command('clobber', help='Clobber the tree (delete the object directory).')
|
||||
def clobber(self):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user