fix(linker): use arg list estimate on only Windows

Though I doubt anyone running rustc outside Unix/Windows
This commit is contained in:
Weihang Lo 2025-03-14 08:55:53 -04:00
parent 79034bd291
commit a672448f0d
No known key found for this signature in database
GPG key ID: D7DBF189825E82E7

View file

@ -139,7 +139,7 @@ impl Command {
pub(crate) fn very_likely_to_exceed_some_spawn_limit(&self) -> bool {
// We mostly only care about Windows in this method, on Unix the limits
// can be gargantuan anyway so we're pretty unlikely to hit them
if cfg!(unix) {
if cfg!(not(windows)) {
return false;
}