Unverified Commit bba76373 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

ghc: enable object determinism by default (#481942)

parents e6033a7a 77be50b9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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}"