diff options
| author | Weihang Lo <me@weihanglo.tw> | 2025-03-14 08:55:53 -0400 |
|---|---|---|
| committer | Weihang Lo <me@weihanglo.tw> | 2025-03-14 09:42:18 -0400 |
| commit | a672448f0d223bcfa6907d17c321015ac83606d7 (patch) | |
| tree | e4f7815b9c77c1d55821b8470808b8c7d3744243 /compiler/rustc_codegen_ssa/src/back/command.rs | |
| parent | 79034bd291c13b92d68561ba957dc898c6ad3ae7 (diff) | |
| download | rust-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.rs | 2 |
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; } |
