summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/genprimopcode/genprimopcode.cabal7
-rw-r--r--utils/hpc/hpc-bin.cabal7
2 files changed, 12 insertions, 2 deletions
diff --git a/utils/genprimopcode/genprimopcode.cabal b/utils/genprimopcode/genprimopcode.cabal
index 2dc581dc49..2b92735c2f 100644
--- a/utils/genprimopcode/genprimopcode.cabal
+++ b/utils/genprimopcode/genprimopcode.cabal
@@ -17,6 +17,10 @@ Category: Development
build-type: Simple
cabal-version: 2.0
+Flag build-tool-depends
+ Description: Use build-tool-depends
+ Default: True
+
Executable genprimopcode
Default-Language: Haskell2010
Main-Is: Main.hs
@@ -26,4 +30,5 @@ Executable genprimopcode
Syntax
Build-Depends: base >= 4 && < 5,
array
- build-tool-depends: alex:alex >= 3.2.6, happy:happy >= 1.20.0
+ if flag(build-tool-depends)
+ build-tool-depends: alex:alex >= 3.2.6, happy:happy >= 1.20.0
diff --git a/utils/hpc/hpc-bin.cabal b/utils/hpc/hpc-bin.cabal
index 6e344de856..62601cdb07 100644
--- a/utils/hpc/hpc-bin.cabal
+++ b/utils/hpc/hpc-bin.cabal
@@ -12,6 +12,10 @@ Category: Development
build-type: Simple
cabal-version: 2.0
+Flag build-tool-depends
+ Description: Use build-tool-depends
+ Default: True
+
Executable hpc
Default-Language: Haskell2010
Main-Is: Main.hs
@@ -36,4 +40,5 @@ Executable hpc
array >= 0.1 && < 0.6,
hpc >= 0.6.1 && < 0.7
- build-tool-depends: happy:happy >= 1.20.0
+ if flag(build-tool-depends)
+ build-tool-depends: happy:happy >= 1.20.0