build-manifest: avoid collecting SHAs in parallel on legacy mode
This avoids overloading the old server, and disrupting the other programs running on it.
This commit is contained in:
parent
acd8e59b66
commit
fde1135916
1 changed files with 8 additions and 0 deletions
|
|
@ -207,6 +207,14 @@ fn main() {
|
|||
// related code in this tool and ./x.py dist hash-and-sign can be removed.
|
||||
let legacy = env::var("BUILD_MANIFEST_LEGACY").is_ok();
|
||||
|
||||
// Avoid overloading the old server in legacy mode.
|
||||
if legacy {
|
||||
rayon::ThreadPoolBuilder::new()
|
||||
.num_threads(1)
|
||||
.build_global()
|
||||
.expect("failed to initialize Rayon");
|
||||
}
|
||||
|
||||
let mut args = env::args().skip(1);
|
||||
let input = PathBuf::from(args.next().unwrap());
|
||||
let output = PathBuf::from(args.next().unwrap());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue