Sven Tennie pushed to branch wip/romes/hadrian-cross-stage2-rebase_SVEN_FINAL at Glasgow Haskell Compiler / GHC Commits: f4503bbf by Sven Tennie at 2026-02-26T21:30:52+00:00 Fix stripping: Not for >= Stage2 cross-compiled - - - - - 1 changed file: - hadrian/src/Settings/Builders/Cabal.hs Changes: ===================================== hadrian/src/Settings/Builders/Cabal.hs ===================================== @@ -90,9 +90,10 @@ commonCabalArgs stage = do -- we might have issues with stripping on Windows, as I can't see a -- consumer of 'stripCmdPath'. -- TODO: See https://github.com/snowleopard/hadrian/issues/549. - -- TODO: MP should check per-stage rather than a global CrossCompiling, but not going to cause bugs - flag CrossCompiling ? pure [ "--disable-executable-stripping" - , "--disable-library-stripping" ] + -- Do not try to strip cross-compiled libs, we can't do this, yet. + andM [flag CrossCompiling, pure (stage >= Stage2)] ? + pure [ "--disable-executable-stripping" + , "--disable-library-stripping" ] -- We don't want to strip the debug RTS , S.package rts ? pure [ "--disable-executable-stripping" , "--disable-library-stripping" ] View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f4503bbfdb2415c4175b79c2f11d6ba5... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f4503bbfdb2415c4175b79c2f11d6ba5... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Sven Tennie (@supersven)