haskell: re-enable profiling on aarch64

The main problem was GHC exceeding the Hydra output limit with profiling
libs on aarch64-linux which made us disable the feature. Nowadays the
limit is 3GB, the GHC output is a bit over 2GB, so easily under the
limit.

aarch64-darwin uses a different codegen backend and was never really
affected by the problem: Its output with profiling enabled is around
1.6GB.

Consequently we can enable profiling for all platforms again, as we have
no output size issues for those we build on Hydra.

Thanks to flokli for helping me track down these up to date numbers.

+14 -28
+1 -2
pkgs/development/compilers/ghc/8.10.7.nix
··· 28 28 , # If enabled, use -fPIC when compiling static libs. 29 29 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 30 30 31 - # aarch64 outputs otherwise exceed 2GB limit 32 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 31 + , enableProfiledLibs ? true 33 32 34 33 , # Whether to build dynamic libs for the standard library (on the target 35 34 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/8.8.4.nix
··· 27 27 , # If enabled, use -fPIC when compiling static libs. 28 28 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 29 29 30 - # aarch64 outputs otherwise exceed 2GB limit 31 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 30 + , enableProfiledLibs ? true 32 31 33 32 , # Whether to build dynamic libs for the standard library (on the target 34 33 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.0.2.nix
··· 30 30 , # If enabled, use -fPIC when compiling static libs. 31 31 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 32 32 33 - # aarch64 outputs otherwise exceed 2GB limit 34 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 33 + , enableProfiledLibs ? true 35 34 36 35 , # Whether to build dynamic libs for the standard library (on the target 37 36 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.2.4.nix
··· 30 30 , # If enabled, use -fPIC when compiling static libs. 31 31 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 32 32 33 - # aarch64 outputs otherwise exceed 2GB limit 34 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 33 + , enableProfiledLibs ? true 35 34 36 35 , # Whether to build dynamic libs for the standard library (on the target 37 36 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.2.5.nix
··· 30 30 , # If enabled, use -fPIC when compiling static libs. 31 31 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 32 32 33 - # aarch64 outputs otherwise exceed 2GB limit 34 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 33 + , enableProfiledLibs ? true 35 34 36 35 , # Whether to build dynamic libs for the standard library (on the target 37 36 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.2.6.nix
··· 30 30 , # If enabled, use -fPIC when compiling static libs. 31 31 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 32 32 33 - # aarch64 outputs otherwise exceed 2GB limit 34 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 33 + , enableProfiledLibs ? true 35 34 36 35 , # Whether to build dynamic libs for the standard library (on the target 37 36 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.2.7.nix
··· 30 30 , # If enabled, use -fPIC when compiling static libs. 31 31 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 32 32 33 - # aarch64 outputs otherwise exceed 2GB limit 34 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 33 + , enableProfiledLibs ? true 35 34 36 35 , # Whether to build dynamic libs for the standard library (on the target 37 36 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.2.8.nix
··· 30 30 , # If enabled, use -fPIC when compiling static libs. 31 31 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 32 32 33 - # aarch64 outputs otherwise exceed 2GB limit 34 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 33 + , enableProfiledLibs ? true 35 34 36 35 , # Whether to build dynamic libs for the standard library (on the target 37 36 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.4.2.nix
··· 32 32 , # If enabled, use -fPIC when compiling static libs. 33 33 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 34 34 35 - # aarch64 outputs otherwise exceed 2GB limit 36 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 35 + , enableProfiledLibs ? true 37 36 38 37 , # Whether to build dynamic libs for the standard library (on the target 39 38 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.4.3.nix
··· 32 32 , # If enabled, use -fPIC when compiling static libs. 33 33 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 34 34 35 - # aarch64 outputs otherwise exceed 2GB limit 36 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 35 + , enableProfiledLibs ? true 37 36 38 37 , # Whether to build dynamic libs for the standard library (on the target 39 38 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.4.4.nix
··· 32 32 , # If enabled, use -fPIC when compiling static libs. 33 33 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 34 34 35 - # aarch64 outputs otherwise exceed 2GB limit 36 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 35 + , enableProfiledLibs ? true 37 36 38 37 , # Whether to build dynamic libs for the standard library (on the target 39 38 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/9.4.5.nix
··· 32 32 , # If enabled, use -fPIC when compiling static libs. 33 33 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 34 34 35 - # aarch64 outputs otherwise exceed 2GB limit 36 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 35 + , enableProfiledLibs ? true 37 36 38 37 , # Whether to build dynamic libs for the standard library (on the target 39 38 # platform). Static libs are always built.
+1 -2
pkgs/development/compilers/ghc/common-hadrian.nix
··· 57 57 , # If enabled, use -fPIC when compiling static libs. 58 58 enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform 59 59 60 - # aarch64 outputs otherwise exceed 2GB limit 61 - , enableProfiledLibs ? !stdenv.targetPlatform.isAarch64 60 + , enableProfiledLibs ? true 62 61 63 62 , # Whether to build dynamic libs for the standard library (on the target 64 63 # platform). Static libs are always built.
+1 -2
pkgs/development/haskell-modules/generic-builder.nix
··· 33 33 , doHaddockQuickjump ? doHoogle && lib.versionAtLeast ghc.version "8.6" 34 34 , doInstallIntermediates ? false 35 35 , editedCabalFile ? null 36 - # aarch64 outputs otherwise exceed 2GB limit 37 - , enableLibraryProfiling ? !(ghc.isGhcjs or stdenv.hostPlatform.isAarch64 or false) 36 + , enableLibraryProfiling ? !(ghc.isGhcjs or false) 38 37 , enableExecutableProfiling ? false 39 38 , profilingDetail ? "exported-functions" 40 39 # TODO enable shared libs for cross-compiling