Skip to content

Commit c41ac2e

Browse files
committed
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
1 parent d361efa commit c41ac2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/bootstrap.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ def update_submodules(self):
596596
def bootstrap():
597597
parser = argparse.ArgumentParser(description='Build rust')
598598
parser.add_argument('--config')
599+
parser.add_argument('--build')
599600
parser.add_argument('--clean', action='store_true')
600601
parser.add_argument('-v', '--verbose', action='store_true')
601602

@@ -669,7 +670,7 @@ def bootstrap():
669670
rb.update_submodules()
670671

671672
# Fetch/build the bootstrap
672-
rb.build = rb.build_triple()
673+
rb.build = args.build or rb.build_triple()
673674
rb.download_stage0()
674675
sys.stdout.flush()
675676
rb.build_bootstrap()

0 commit comments

Comments
 (0)