Skip to content

Commit

Permalink
install: set jobs=1 if --raw
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 14, 2023
1 parent 571b9b9 commit 02c8ba0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/toolset/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ impl Toolset {
}
}
let queue = Arc::new(Mutex::new(queue));
let jobs = opts.jobs.unwrap_or(config.settings.jobs);
let jobs = match opts.raw {
true => 1,
false => opts.jobs.unwrap_or(config.settings.jobs),
};
thread::scope(|s| {
(0..jobs)
.map(|_| {
Expand Down

0 comments on commit 02c8ba0

Please sign in to comment.