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.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index 9e61e0e2a2..74d95cdc65 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -56,6 +56,12 @@ Flag dynamic-system-linker
Default: True
Manual: True
+-- hadrian disables this flag because the user may be building from a source
+-- distribution where the parser has already been generated.
+Flag build-tool-depends
+ Description: Use build-tool-depends
+ Default: True
+
Library
Default-Language: Haskell2010
Exposed: False
@@ -67,7 +73,8 @@ Library
FunTypes.h
ghc-llvm-version.h
- build-tool-depends: alex:alex >= 3.2.6, happy:happy >= 1.20.0, genprimopcode:genprimopcode, deriveConstants:deriveConstants
+ if flag(build-tool-depends)
+ build-tool-depends: alex:alex >= 3.2.6, happy:happy >= 1.20.0, genprimopcode:genprimopcode, deriveConstants:deriveConstants
Build-Depends: base >= 4.11 && < 4.17,
deepseq >= 1.4 && < 1.5,