Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,7 @@ def bootstrap(help_triggered):
parser.add_argument('--config')
parser.add_argument('--build')
parser.add_argument('--clean', action='store_true')
parser.add_argument('--download-only', action='store_true')
parser.add_argument('-v', '--verbose', action='count', default=0)

args = [a for a in sys.argv if a != '-h' and a != '--help']
Expand Down Expand Up @@ -1056,6 +1057,11 @@ def bootstrap(help_triggered):

# Fetch/build the bootstrap
build.download_toolchain()

if args.download_only:
print("info: Exiting early because download-only was set.")
exit(0)

sys.stdout.flush()
build.ensure_vendored()
build.build_bootstrap()
Expand Down Expand Up @@ -1091,7 +1097,7 @@ def main():
else:
exit_code = 1
print(error)
if not help_triggered:
if not help_triggered and exit_code != 0:
print("Build completed unsuccessfully in {}".format(
format_build_time(time() - start_time)))
sys.exit(exit_code)
Expand Down