Skip to content

Commit

Permalink
Tell hadrian to use hashes in unit ids
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed May 24, 2024
1 parent a44822a commit 22a3da9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/ghc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,10 @@ let
# iPhones/iPads/... won't understand the compiled code, as the compiler will emit LDSETALH
# + lib.optionalString (targetPlatform.???) "'*.rts.ghc.c.opts += -optc-mcpu=apple-a7 -optc-march=armv8-a+norcpc'"
# For GHC versions in the 9.x range that don't support the +native_bignum flavour transformer yet
+ lib.optionalString ((enableNativeBignum && !hadrianHasNativeBignumFlavour))
+ lib.optionalString (enableNativeBignum && !hadrianHasNativeBignumFlavour)
" --bignum=native"
# Tell hadrian to hash the unit-ids
+ " --hash-unit-ids"
;

# When installation is done by copying the stage1 output the directory layout
Expand Down

0 comments on commit 22a3da9

Please sign in to comment.