1
Fork 0

Revert "Remove num_cpus dependency from bootstrap, build-manifest and rustc_session"

This reverts commit 2d854f9c34.
This commit is contained in:
David Tolnay 2022-06-09 03:10:15 -07:00
parent fde0f1195f
commit 1ae4b25826
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
9 changed files with 11 additions and 7 deletions

View file

@ -578,7 +578,7 @@ mod parse {
pub(crate) fn parse_threads(slot: &mut usize, v: Option<&str>) -> bool {
match v.and_then(|s| s.parse().ok()) {
Some(0) => {
*slot = std::thread::available_parallelism().map_or(1, std::num::NonZeroUsize::get);
*slot = ::num_cpus::get();
true
}
Some(i) => {