about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back/command.rs
diff options
context:
space:
mode:
authorWeihang Lo <me@weihanglo.tw>2025-03-14 08:55:53 -0400
committerWeihang Lo <me@weihanglo.tw>2025-03-14 09:42:18 -0400
commita672448f0d223bcfa6907d17c321015ac83606d7 (patch)
treee4f7815b9c77c1d55821b8470808b8c7d3744243 /compiler/rustc_codegen_ssa/src/back/command.rs
parent79034bd291c13b92d68561ba957dc898c6ad3ae7 (diff)
downloadrust-a672448f0d223bcfa6907d17c321015ac83606d7.tar.gz
rust-a672448f0d223bcfa6907d17c321015ac83606d7.zip
fix(linker): use arg list estimate on only Windows
Though I doubt anyone running rustc outside Unix/Windows
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back/command.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/command.rs b/compiler/rustc_codegen_ssa/src/back/command.rs
index 84252386041..863d5e7cdd4 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;
         }