summaryrefslogtreecommitdiff
path: root/ghc/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/ghc.mk')
-rw-r--r--ghc/ghc.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index d0c5ce8d46..e6383e1f70 100644
--- a/ghc/ghc.mk
+++ b/ghc/ghc.mk
@@ -14,6 +14,14 @@
ghc_USES_CABAL = YES
ghc_PACKAGE = ghc-bin
+ghc_stage1_CONFIGURE_OPTS += --flags=stage1
+ghc_stage2_CONFIGURE_OPTS += --flags=stage2
+ghc_stage3_CONFIGURE_OPTS += --flags=stage3
+
+ifeq "$(GhcWithInterpreter)" "YES"
+ghc_stage2_CONFIGURE_OPTS += --flags=ghci
+endif
+
ghc_stage1_MORE_HC_OPTS = $(GhcStage1HcOpts)
ghc_stage2_MORE_HC_OPTS = $(GhcStage2HcOpts)
ghc_stage3_MORE_HC_OPTS = $(GhcStage3HcOpts)