fix(build): force -O0 via configureFlags.ghc-option (cabal ghc-options not reliable in postUnpack)
This commit is contained in:
parent
4b269ab653
commit
c03badc9dd
1 changed files with 2 additions and 0 deletions
|
|
@ -112,6 +112,8 @@
|
|||
# Splits the monolithic Generated.Types (119 imports, ~287 MB
|
||||
# interface-file overflow in GHC 9.10.3) into two halves.
|
||||
# All awk/printf: no external file deps, no git-tracking required.
|
||||
# -O0 keeps .hi files small (strips unfoldings/specialisations).
|
||||
configureFlags = (old.configureFlags or "") + " --ghc-option=-O0";
|
||||
postUnpack = (old.postUnpack or "") + ''
|
||||
_types="$sourceRoot/build/Generated/Types.hs"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue