ghc: enable object determinism by default (#481942)

This commit is contained in:
Wolfgang Walther
2026-01-22 10:49:13 +00:00
committed by GitHub
@@ -157,6 +157,7 @@ in
coreSetup ? false, # Use only core packages to build Setup.hs.
useCpphs ? false,
hardeningDisable ? null,
enableObjectDeterminism ? lib.versionAtLeast ghc.version "9.12",
enableSeparateBinOutput ? false,
enableSeparateDataOutput ? false,
enableSeparateDocOutput ? doHaddock,
@@ -355,6 +356,9 @@ let
(enableFeature (!dontStrip) "library-stripping")
(enableFeature (!dontStrip) "executable-stripping")
]
++ optionals enableObjectDeterminism [
"--ghc-option=-fobject-determinism"
]
++ optionals isCross (
[
"--configure-option=--host=${stdenv.hostPlatform.config}"