diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-02-24 20:03:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 20:03:12 -0500 |
commit | 3b12afd0723b288feb7c8c53ac3938a17fd0e57c (patch) | |
tree | 8ac398efaef6e59e3ab2278f378706aa44b5641e /cli/standalone.rs | |
parent | c59152e4000393ad122855c26198c1d942497c00 (diff) |
chore: upgrade to Rust 1.59 (#13767)
Diffstat (limited to 'cli/standalone.rs')
-rw-r--r-- | cli/standalone.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/standalone.rs b/cli/standalone.rs index b7c026cec..bd7bef8ac 100644 --- a/cli/standalone.rs +++ b/cli/standalone.rs @@ -269,7 +269,9 @@ pub async fn run( bootstrap: BootstrapOptions { apply_source_maps: false, args: metadata.argv, - cpu_count: num_cpus::get(), + cpu_count: std::thread::available_parallelism() + .map(|p| p.get()) + .unwrap_or(1), debug_flag: metadata.log_level.map_or(false, |l| l == log::Level::Debug), enable_testing_features: false, location: metadata.location, |