From a672448f0d223bcfa6907d17c321015ac83606d7 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Fri, 14 Mar 2025 08:55:53 -0400 Subject: [PATCH] fix(linker): use arg list estimate on only Windows Though I doubt anyone running rustc outside Unix/Windows --- compiler/rustc_codegen_ssa/src/back/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_codegen_ssa/src/back/command.rs b/compiler/rustc_codegen_ssa/src/back/command.rs index 842523860415..863d5e7cdd4b 100644 --- a/compiler/rustc_codegen_ssa/src/back/command.rs +++ b/compiler/rustc_codegen_ssa/src/back/command.rs @@ -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; }