We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Zthreads=sync
1 parent f28ac76 commit 164e608Copy full SHA for 164e608
1 file changed
compiler/rustc_session/src/options.rs
@@ -1105,7 +1105,7 @@ pub mod parse {
1105
// We want to cap the number of threads here to avoid large numbers like 999999 and compiler panics.
1106
// This solution was suggested here https://github.com/rust-lang/rust/issues/117638#issuecomment-1800925067
1107
let n = n.min(MAX_THREADS_CAP);
1108
- *slot = (n > 1).then_some(n); // Enable synchronization if we're using more than one thread.
+ *slot = Some(n);
1109
true
1110
}
1111
0 commit comments