Skip to content

Commit

Permalink
Better fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Nov 29, 2024
1 parent 689d5bc commit d6ad31d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/ghc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ let
+ lib.optionalString (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64)
" '*.*.ghc.c.opts += -optc-mcpu=apple-a7 -optc-march=armv8-a+norcpc'"
+ lib.optionalString (targetPlatform.isAndroid && targetPlatform.isAarch32)
" '*.*.ghc.c.opts += -optc-march=armv7-a -optc-mfloat-abi=softfp -optc-mfpu=vfpv3-d16'"
" 'stage1.*.ghc.c.opts += -optc-march=armv7-a -optc-mfloat-abi=softfp -optc-mfpu=vfpv3-d16'"
+ lib.optionalString (targetPlatform.isAndroid && targetPlatform.isAarch64)
" '*.*.ghc.c.opts += -optc-march=armv8-a'"
" 'stage1.*.ghc.c.opts += -optc-march=armv8-a'"
# For GHC versions in the 9.x range that don't support the +native_bignum flavour transformer yet
+ lib.optionalString ((enableNativeBignum && !hadrianHasNativeBignumFlavour))
" --bignum=native"
Expand Down

0 comments on commit d6ad31d

Please sign in to comment.