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
1 changed file:
Changes:
| ... | ... | @@ -90,9 +90,10 @@ commonCabalArgs stage = do |
| 90 | 90 | -- we might have issues with stripping on Windows, as I can't see a
|
| 91 | 91 | -- consumer of 'stripCmdPath'.
|
| 92 | 92 | -- TODO: See https://github.com/snowleopard/hadrian/issues/549.
|
| 93 | - -- TODO: MP should check per-stage rather than a global CrossCompiling, but not going to cause bugs
|
|
| 94 | - flag CrossCompiling ? pure [ "--disable-executable-stripping"
|
|
| 95 | - , "--disable-library-stripping" ]
|
|
| 93 | + -- Do not try to strip cross-compiled libs, we can't do this, yet.
|
|
| 94 | + andM [flag CrossCompiling, pure (stage >= Stage2)] ?
|
|
| 95 | + pure [ "--disable-executable-stripping"
|
|
| 96 | + , "--disable-library-stripping" ]
|
|
| 96 | 97 | -- We don't want to strip the debug RTS
|
| 97 | 98 | , S.package rts ? pure [ "--disable-executable-stripping"
|
| 98 | 99 | , "--disable-library-stripping" ]
|