File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 94
94
inherit ( bootPkgs ) ghc ;
95
95
96
96
ghcHasNativeBignum = builtins . compareVersions ghc-version "9.0" >= 0 ;
97
+ hadrianHasNativeBignumFlavour = builtins . compareVersions ghc-version "9.6" >= 0 ;
97
98
98
99
bignumSpec =
99
100
assert ghcHasNativeBignum -> ! enableIntegerSimple ;
280
281
+ lib . optionalString ( ! enableShared ) "+no_dynamic_ghc"
281
282
+ lib . optionalString useLLVM "+llvm"
282
283
+ lib . optionalString enableDWARF "+debug_info"
283
- + lib . optionalString ( enableNativeBignum || targetPlatform . isGhcjs ) "+native_bignum"
284
+ + lib . optionalString ( ( enableNativeBignum && hadrianHasNativeBignumFlavour ) || targetPlatform . isGhcjs ) "+native_bignum"
284
285
+ lib . optionalString targetPlatform . isGhcjs "+no_profiled_libs"
285
286
} --docs=no-sphinx -j --verbose"
286
287
# This is needed to prevent $GCC from emitting out of line atomics.
295
296
# The following is required if we build on aarch64-darwin for aarch64-iOS. Otherwise older
296
297
# iPhones/iPads/... won't understand the compiled code, as the compiler will emit LDSETALH
297
298
# + lib.optionalString (targetPlatform.???) "'*.rts.ghc.c.opts += -optc-mcpu=apple-a7 -optc-march=armv8-a+norcpc'"
299
+ # For GHC versions in the 9.x range that don't support the +native_bignum flavour transformer yet
300
+ + lib . optionalString ( ( enableNativeBignum && ! hadrianHasNativeBignumFlavour ) )
301
+ " --bignum=native"
298
302
;
299
303
300
304
# When installation is done by copying the stage1 output the directory layout
You can’t perform that action at this time.
0 commit comments