зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1257049 - Stop spawning a separate process for config.status from configure.py. r=gps
This commit is contained in:
Родитель
896fa3fd26
Коммит
2891514755
|
@ -72,9 +72,8 @@ if __name__ == '__main__':
|
|||
if not config.get('BUILDING_JS') or config.get('JS_STANDALONE'):
|
||||
if not config.get('JS_STANDALONE'):
|
||||
os.environ['WRITE_MOZINFO'] = '1'
|
||||
# Until we have access to the virtualenv from this script, execute
|
||||
# config.status externally, with the virtualenv python.
|
||||
return subprocess.call([config['PYTHON'], 'config.status'])
|
||||
from mozbuild.config_status import config_status
|
||||
return config_status(args=[], **sanitized_config)
|
||||
return 0
|
||||
|
||||
|
||||
|
|
|
@ -63,7 +63,8 @@ following:
|
|||
|
||||
|
||||
def config_status(topobjdir='.', topsrcdir='.', defines=None,
|
||||
non_global_defines=None, substs=None, source=None):
|
||||
non_global_defines=None, substs=None, source=None,
|
||||
args=sys.argv[1:]):
|
||||
'''Main function, providing config.status functionality.
|
||||
|
||||
Contrary to config.status, it doesn't use CONFIG_FILES or CONFIG_HEADERS
|
||||
|
@ -112,7 +113,7 @@ def config_status(topobjdir='.', topsrcdir='.', defines=None,
|
|||
' '.join(default_backends))
|
||||
parser.add_argument('--dry-run', action='store_true',
|
||||
help='do everything except writing files out.')
|
||||
options = parser.parse_args()
|
||||
options = parser.parse_args(args)
|
||||
|
||||
# Without -n, the current directory is meant to be the top object directory
|
||||
if not options.not_topobjdir:
|
||||
|
|
Загрузка…
Ссылка в новой задаче