File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 347
347
# disableLargeAddress space conditional on iOS = true.
348
348
+ lib . optionalString ( stdenv . targetPlatform . isDarwin && stdenv . targetPlatform . isAarch64 )
349
349
" '*.*.ghc.c.opts += -optc-mcpu=apple-a7 -optc-march=armv8-a+norcpc'"
350
+ + lib . optionalString ( targetPlatform . isAndroid && targetPlatform . isAarch32 )
351
+ " '*.*.ghc.c.opts += -optc-march=armv7-a -optc-mfloat-abi=softfp -optc-mfpu=vfpv3-d16'"
352
+ + lib . optionalString ( targetPlatform . isAndroid && targetPlatform . isAarch64 )
353
+ " '*.*.ghc.c.opts += -optc-march=armv8-a'"
350
354
# For GHC versions in the 9.x range that don't support the +native_bignum flavour transformer yet
351
355
+ lib . optionalString ( ( enableNativeBignum && ! hadrianHasNativeBignumFlavour ) )
352
356
" --bignum=native"
@@ -805,11 +809,6 @@ stdenv.mkDerivation (rec {
805
809
if [[ -f rts/win32/ThrIOManager.c ]]; then
806
810
substituteInPlace rts/win32/ThrIOManager.c --replace rts\\OSThreads.h rts/OSThreads.h
807
811
fi
808
- ''
809
- + lib . optionalString ( targetPlatform . isAndroid && targetPlatform . isAarch32 ) ''
810
- export NIX_CFLAGS_COMPILE_${
811
- lib . replaceStrings [ "-" "." ] [ "_" "_" ] stdenv . targetPlatform . config
812
- } +=" -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16"
813
812
'' ;
814
813
# Same hack as 'preBuild'
815
814
preInstall = lib . optionalString stdenv . buildPlatform . isDarwin ''
You can’t perform that action at this time.
0 commit comments