Skip to content

Commit 22a3da9

Browse files
committed
Tell hadrian to use hashes in unit ids
1 parent a44822a commit 22a3da9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/ghc/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,10 @@ let
331331
# iPhones/iPads/... won't understand the compiled code, as the compiler will emit LDSETALH
332332
# + lib.optionalString (targetPlatform.???) "'*.rts.ghc.c.opts += -optc-mcpu=apple-a7 -optc-march=armv8-a+norcpc'"
333333
# For GHC versions in the 9.x range that don't support the +native_bignum flavour transformer yet
334-
+ lib.optionalString ((enableNativeBignum && !hadrianHasNativeBignumFlavour))
334+
+ lib.optionalString (enableNativeBignum && !hadrianHasNativeBignumFlavour)
335335
" --bignum=native"
336+
# Tell hadrian to hash the unit-ids
337+
+ " --hash-unit-ids"
336338
;
337339

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

0 commit comments

Comments
 (0)