Skip to content

Commit 56ab95e

Browse files
committed
all ghc c files apple-a7
1 parent 9b66410 commit 56ab95e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/ghc/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ let
332332
# iPhones/iPads/... won't understand the compiled code, as the compiler will emit LDSETALH
333333
# FIXME: we should have iOS as an argument to this derivation, and then make this, as well as
334334
# disableLargeAddress space conditional on iOS = true.
335-
+ lib.optionalString (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64) " '*.rts.ghc.c.opts += -optc-mcpu=apple-a7 -optc-march=armv8-a+norcpc'"
335+
+ lib.optionalString (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64)
336+
" '*.*.ghc.c.opts += -optc-mcpu=apple-a7 -optc-march=armv8-a+norcpc'"
336337
# For GHC versions in the 9.x range that don't support the +native_bignum flavour transformer yet
337338
+ lib.optionalString ((enableNativeBignum && !hadrianHasNativeBignumFlavour))
338339
" --bignum=native"

0 commit comments

Comments
 (0)