From c41ac2e11a84f7591c4ddd435c3567aae743ad0e Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Fri, 21 Jul 2017 14:11:18 +0300 Subject: [PATCH] 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 --- src/bootstrap/bootstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index ebc4c2fdf7bf2..a8b1032ae5e6d 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -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') @@ -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()