]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/flags.rs
Remove the source archive functionality of ArchiveWriter
[rust.git] / src / bootstrap / flags.rs
index f692ff72d4eb9aa908f66361adb01d5bbc2e5df6..9d4bb978bdc4ded69c524013411e886a9d7811a3 100644 (file)
@@ -210,7 +210,7 @@ pub fn parse(args: &[String]) -> Flags {
         let j_msg = format!(
             "number of jobs to run in parallel; \
              defaults to {} (this host's logical CPU count)",
-            std::thread::available_parallelism().map_or(1, std::num::NonZeroUsize::get)
+            num_cpus::get()
         );
         opts.optopt("j", "jobs", &j_msg, "JOBS");
         opts.optflag("h", "help", "print this help message");