Bug 865445 - Add 'configure' command to mach to rebuild the backend. r=gps

This commit is contained in:
Brian O'Keefe 2013-04-26 10:11:00 -04:00
parent 5b7dde4e49
commit bc040e83d4

View File

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