[Git][ghc/ghc][wip/dcoutts/windows-dlls] Try using response files for hadrian linking with ghc.
Duncan Coutts pushed to branch wip/dcoutts/windows-dlls at Glasgow Haskell Compiler / GHC Commits: 0e08233b by Duncan Coutts at 2026-01-09T14:25:42+00:00 Try using response files for hadrian linking with ghc. On windows, the link command line for ghc-internal is well over 32kb. We did not encounter this before for static libs, since we already use ar's @file feature (if available, which it is for the llvm toolchain). We encounter this now on windows for linking dll files (which uses ghc calling (l)ld rather than ar). - - - - - 1 changed file: - hadrian/src/Builder.hs Changes: ===================================== hadrian/src/Builder.hs ===================================== @@ -356,6 +356,9 @@ instance H.Builder Builder where Ghc FindHsDependencies _ -> do runGhcWithResponse path buildArgs buildInputs + Ghc LinkHs _ -> do + runGhcWithResponse path buildArgs buildInputs + HsCpp -> captureStdout Make dir -> cmd' buildOptions path ["-C", dir] buildArgs View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0e08233b138793c733797ba7bdebff08... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0e08233b138793c733797ba7bdebff08... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Duncan Coutts (@dcoutts)