fix(build): force -O0 via configureFlags.ghc-option (cabal ghc-options not reliable in postUnpack)

This commit is contained in:
2026-04-30 22:36:40 +02:00
parent 4b269ab653
commit c03badc9dd

View File

@@ -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"