diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-09-25 20:31:59 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-25 20:31:59 +1000 |
| commit | fe4cceb73dd5f7118043d20fa7a2667a6cdf4549 (patch) | |
| tree | e1f44664fd362aa2248dda38be87f4bb049be3f7 | |
| parent | 3053a18ec92fba1adc28997fb1784a671bdb82a3 (diff) | |
| parent | 747019ce4647dd2194c2d9e08d482e4d9c669069 (diff) | |
| download | rust-fe4cceb73dd5f7118043d20fa7a2667a6cdf4549.tar.gz rust-fe4cceb73dd5f7118043d20fa7a2667a6cdf4549.zip | |
Rollup merge of #147008 - neuschaefer:bootstrap-jobs, r=Kobzol
bootstrap.py: Respect build.jobs while building bootstrap tool On resource-constrained systems, it is vital to respect the value of build.jobs, in order to avoid overwhelming the available memory.
| -rw-r--r-- | src/bootstrap/bootstrap.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index effd33d288f..8b1775178c9 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -596,6 +596,7 @@ class RustBuild(object): self.download_url = ( os.getenv("RUSTUP_DIST_SERVER") or self.stage0_data["dist_server"] ) + self.jobs = self.get_toml("jobs", "build") or "default" self.build = args.build or self.build_triple() @@ -1144,6 +1145,7 @@ class RustBuild(object): args = [ self.cargo(), "build", + "--jobs=" + self.jobs, "--manifest-path", os.path.join(self.rust_root, "src/bootstrap/Cargo.toml"), "-Zroot-dir=" + self.rust_root, |
