From 22a3da9c74ed466cfcfc8a9aa99c0922f9fb34b5 Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Fri, 24 May 2024 17:10:20 +0800 Subject: [PATCH] Tell hadrian to use hashes in unit ids --- compiler/ghc/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/ghc/default.nix b/compiler/ghc/default.nix index 9d92a3d008..c1ef92c1e8 100644 --- a/compiler/ghc/default.nix +++ b/compiler/ghc/default.nix @@ -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