Skip to content

Commit 19c9ea7

Browse files
committed
Add extraFlavourTransformers option to GHC config (closes #2425)
1 parent da9cbd5 commit 19c9ea7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/ghc/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ let self =
6363
else "perf-cross-ncg"
6464
)
6565

66+
, # Extra flavour transformers to pass to Hadrian. For example, +debug_ghc or
67+
# +assertions to work on debugging the compiler.
68+
extraFlavourTransformers ? []
69+
6670
, # Whether to disable the large address space allocator
6771
# necessary fix for iOS: https://www.reddit.com/r/haskell/comments/4ttdz1/building_an_osxi386_to_iosarm64_cross_compiler/d5qvd67/
6872
disableLargeAddressSpace ? stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64 || stdenv.targetPlatform.isAndroid
@@ -388,6 +392,7 @@ let
388392
+ lib.optionalString ((enableNativeBignum && hadrianHasNativeBignumFlavour) || targetPlatform.isGhcjs || targetPlatform.isWasm) "+native_bignum"
389393
+ lib.optionalString (targetPlatform.isGhcjs || targetPlatform.isWasm) "+no_profiled_libs"
390394
+ lib.optionalString enableIPE "+ipe"
395+
+ lib.concatStrings extraFlavourTransformers
391396
} --docs=no-sphinx -j --verbose"
392397
# This is needed to prevent $GCC from emitting out of line atomics.
393398
# Those would then result in __aarch64_ldadd1_sync and others being referenced, which

0 commit comments

Comments
 (0)