Skip to content

Commit da9cbd5

Browse files
committed
Add a flag "enableIPE" to enable the IPE hadrian flavor
1 parent d7e420f commit da9cbd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/ghc/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ let self =
4646

4747
, enableDWARF ? false
4848

49+
, enableIPE ? false
50+
4951
, enableTerminfo ? !stdenv.targetPlatform.isAndroid &&
5052
# Terminfo does not work on older ghc cross arm and windows compilers
5153
(!haskell-nix.haskellLib.isCrossTarget || !(stdenv.targetPlatform.isAarch32 || stdenv.targetPlatform.isAarch64 || stdenv.targetPlatform.isWindows) || builtins.compareVersions ghc-version "8.10" >= 0)
@@ -385,6 +387,7 @@ let
385387
+ lib.optionalString enableDWARF "+debug_info"
386388
+ lib.optionalString ((enableNativeBignum && hadrianHasNativeBignumFlavour) || targetPlatform.isGhcjs || targetPlatform.isWasm) "+native_bignum"
387389
+ lib.optionalString (targetPlatform.isGhcjs || targetPlatform.isWasm) "+no_profiled_libs"
390+
+ lib.optionalString enableIPE "+ipe"
388391
} --docs=no-sphinx -j --verbose"
389392
# This is needed to prevent $GCC from emitting out of line atomics.
390393
# Those would then result in __aarch64_ldadd1_sync and others being referenced, which

0 commit comments

Comments
 (0)