Manually control more of the Cabal flags for the compiler and ghc packages
authorIan Lynagh <igloo@earth.li>
Fri, 21 Jan 2011 23:05:52 +0000 (23:05 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 21 Jan 2011 23:05:52 +0000 (23:05 +0000)
For some reason the Windows HEAD builder has started thinking the ghci
flag should be on in stage 1. This should fix it, and generally make
things a little more resilient.

compiler/ghc.cabal.in
ghc/ghc-bin.cabal.in
ghc/ghc.mk

index 01db24a..dd9dd64 100644 (file)
@@ -44,14 +44,17 @@ Flag ncg
 Flag stage1
     Description: Is this stage 1?
     Default: False
+    Manual: True
 
 Flag stage2
     Description: Is this stage 2?
     Default: False
+    Manual: True
 
 Flag stage3
     Description: Is this stage 3?
     Default: False
+    Manual: True
 
 Library
     Exposed: False
index 6481180..420c918 100644 (file)
@@ -20,6 +20,8 @@ Cabal-Version: >= 1.2
 
 Flag ghci
     Description: Build GHCi support.
+    Default: False
+    Manual: True
 
 Executable ghc
     Main-Is: Main.hs
index d0c5ce8..e6383e1 100644 (file)
 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)