Skip to content
Snippets Groups Projects
Commit 571f8f5c authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1690712 - Allow --enable-bootstrap in all configurations....

Bug 1690712 - Allow --enable-bootstrap in all configurations. r=firefox-build-system-reviewers,mhentges

And make it prioritize the bootstrap directory over system paths.

Differential Revision: https://phabricator.services.mozilla.com/D103981
parent faaf1bbc
No related branches found
No related tags found
No related merge requests found
......@@ -208,12 +208,27 @@ def moz_fetches_dir(value):
return value[0]
@depends(developer_options, moz_fetches_dir)
def bootstrap_search_path_order(developer_options, moz_fetches_dir):
option(
"--enable-bootstrap",
nargs="?",
choices=("install", "update"),
help="Automatically update/bootstrap some toolchains when they are present but out of date",
)
@depends(developer_options, "--enable-bootstrap", moz_fetches_dir)
def bootstrap_search_path_order(developer_options, bootstrap, moz_fetches_dir):
if moz_fetches_dir:
log.debug("Prioritizing MOZ_FETCHES_DIR in toolchain path.")
return "prepend"
if bootstrap:
log.debug(
"Prioritizing mozbuild state dir in toolchain paths because "
"bootstrap mode is enabled."
)
return "prepend"
if developer_options:
log.debug(
"Prioritizing mozbuild state dir in toolchain paths because "
......@@ -239,16 +254,7 @@ def original_path():
return environ["PATH"].split(os.pathsep)
option(
"--enable-bootstrap",
nargs="?",
choices=("install", "update"),
when=developer_options,
help="Automatically update/bootstrap some toolchains when they are present but out of date",
)
@depends("--enable-bootstrap", when=developer_options)
@depends("--enable-bootstrap")
def bootstrap(value):
if value:
# value here is either an empty tuple, or a tuple containing either
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment