ghc: enable object determinism by default (#481942)
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user