summaryrefslogtreecommitdiff
path: root/compiler/ghc.cabal.in
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ghc.cabal.in')
-rw-r--r--compiler/ghc.cabal.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index 5b93d3ceb2..4be4d60cb7 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -45,6 +45,11 @@ Flag terminfo
Default: True
Manual: True
+Flag integer-simple
+ Description: Use integer-simple
+ Manual: True
+ Default: False
+
Flag integer-gmp
Description: Use integer-gmp
Manual: True
@@ -89,11 +94,20 @@ Library
CPP-Options: -DGHCI
Include-Dirs: ../rts/dist/build @FFIIncludeDir@
+ -- sanity-check to ensure not more than one integer flag is set
+ if flag(integer-gmp) && flag(integer-simple)
+ build-depends: invalid-cabal-flag-settings<0
+
-- gmp internals are used by the GHCi debugger if available
if flag(integer-gmp)
CPP-Options: -DINTEGER_GMP
build-depends: integer-gmp >= 1.0.2
+ -- simple internals are used by the GHCi debugger if available
+ if flag(integer-simple)
+ CPP-Options: -DINTEGER_SIMPLE
+ build-depends: integer-simple >= 0.1.1.1
+
Other-Extensions:
BangPatterns
CPP