Skip to content

Commit

Permalink
Auto merge of #43384 - segevfiner:bootstrap-build-argument-fix, r=aid…
Browse files Browse the repository at this point in the history
…anhs

rustbuild: Fix the --build argument to bootstrap.py

This makes the --build argument also apply for the downloading of the stage0 toolchain and building rustbuild.

Fixes #42116
  • Loading branch information
bors committed Jul 25, 2017
2 parents 917260e + c41ac2e commit 5c126bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bootstrap/bootstrap.py
Expand Up @@ -596,6 +596,7 @@ def update_submodules(self):
def bootstrap():
parser = argparse.ArgumentParser(description='Build rust')
parser.add_argument('--config')
parser.add_argument('--build')
parser.add_argument('--clean', action='store_true')
parser.add_argument('-v', '--verbose', action='store_true')

Expand Down Expand Up @@ -669,7 +670,7 @@ def bootstrap():
rb.update_submodules()

# Fetch/build the bootstrap
rb.build = rb.build_triple()
rb.build = args.build or rb.build_triple()
rb.download_stage0()
sys.stdout.flush()
rb.build_bootstrap()
Expand Down

0 comments on commit 5c126bd

Please sign in to comment.