about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorSegev Finer <segev208@gmail.com>2017-07-21 14:11:18 +0300
committerSegev Finer <segev208@gmail.com>2017-07-21 14:18:35 +0300
commitc41ac2e11a84f7591c4ddd435c3567aae743ad0e (patch)
treeffc5f06422dee3e11e0550ff3f90249bd6681c1e /src/bootstrap
parentd361efac2639fa9dd7f6195e4276a728b8875d7a (diff)
downloadrust-c41ac2e11a84f7591c4ddd435c3567aae743ad0e.tar.gz
rust-c41ac2e11a84f7591c4ddd435c3567aae743ad0e.zip
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
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/bootstrap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index ebc4c2fdf7b..a8b1032ae5e 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -596,6 +596,7 @@ class RustBuild(object):
 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')
 
@@ -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()