summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authorThom Chiovoloni <thom@shift.click>2022-06-30 15:50:48 -0700
committerThom Chiovoloni <thom@shift.click>2022-06-30 15:50:48 -0700
commit79f8dc0b898b0a387df684a539cd97446a0f964f (patch)
tree2fca5bacb515443dbe602d1a7355407a1e2e2114 /src/bootstrap/bootstrap.py
parent7425fb293f510a6f138e82a963a3bc599a5b9e1c (diff)
downloadrust-79f8dc0b898b0a387df684a539cd97446a0f964f.tar.gz
rust-79f8dc0b898b0a387df684a539cd97446a0f964f.zip
Add a `--build-dir` flag to rustbuild
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-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 8000e60f64d..6ead79ef040 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -866,6 +866,7 @@ def bootstrap(help_triggered):
 
     parser = argparse.ArgumentParser(description='Build rust')
     parser.add_argument('--config')
+    parser.add_argument('--build-dir')
     parser.add_argument('--build')
     parser.add_argument('--color', choices=['always', 'never', 'auto'])
     parser.add_argument('--clean', action='store_true')
@@ -915,7 +916,7 @@ def bootstrap(help_triggered):
 
     build.check_vendored_status()
 
-    build_dir = build.get_toml('build-dir', 'build') or 'build'
+    build_dir = args.build_dir or build.get_toml('build-dir', 'build') or 'build'
     build.build_dir = os.path.abspath(build_dir)
 
     with open(os.path.join(build.rust_root, "src", "stage0.json")) as f: