diff options
| author | Segev Finer <segev208@gmail.com> | 2017-07-21 14:11:18 +0300 |
|---|---|---|
| committer | Segev Finer <segev208@gmail.com> | 2017-07-21 14:18:35 +0300 |
| commit | c41ac2e11a84f7591c4ddd435c3567aae743ad0e (patch) | |
| tree | ffc5f06422dee3e11e0550ff3f90249bd6681c1e /src/bootstrap | |
| parent | d361efac2639fa9dd7f6195e4276a728b8875d7a (diff) | |
| download | rust-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.py | 3 |
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() |
