diff options
author | Ian Lynagh <igloo@earth.li> | 2011-01-15 23:19:27 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-01-15 23:19:27 +0000 |
commit | a3be88fd60cc63b97ec8509f46a8d93025760792 (patch) | |
tree | eb73ab10e25592144b88a4dc80edd99adc18ea40 /ghc | |
parent | 18fe16c9d3468c818d4fd650f47cfd6971e578b5 (diff) | |
download | haskell-a3be88fd60cc63b97ec8509f46a8d93025760792.tar.gz |
Build system improvements
We no longer use dummy-ghc; instead we don't configure most packages
until the stage1 compiler is available.
We also now use Cabal for building the ghc-bin package.
There are a couple more sanity checks too.
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/ghc-bin.cabal.in | 20 | ||||
-rw-r--r-- | ghc/ghc.mk | 4 |
2 files changed, 9 insertions, 15 deletions
diff --git a/ghc/ghc-bin.cabal.in b/ghc/ghc-bin.cabal.in index 888883a856..a9d150be23 100644 --- a/ghc/ghc-bin.cabal.in +++ b/ghc/ghc-bin.cabal.in @@ -18,24 +18,18 @@ Data-Files: extra-gcc-opts Build-Type: Simple Cabal-Version: >= 1.2 -Flag base3 - Description: Choose the new smaller, split-up base package. - Flag ghci Description: Build GHCi support. Executable ghc Main-Is: Main.hs - if flag(base3) - Build-Depends: base >= 3 && < 5, - array >= 0.1 && < 0.3, - bytestring >= 0.9 && < 0.10, - directory >= 1 && < 1.2, - process >= 1 && < 1.1 - else - Build-Depends: base < 3 - Build-Depends: base, ghc - Build-Depends: filepath >= 1 && < 1.2 + Build-Depends: base >= 3 && < 5, + array >= 0.1 && < 0.4, + bytestring >= 0.9 && < 0.10, + directory >= 1 && < 1.2, + process >= 1 && < 1.1, + filepath >= 1 && < 1.3, + ghc if os(windows) Build-Depends: Win32 else diff --git a/ghc/ghc.mk b/ghc/ghc.mk index 3b68d5b3b9..e178a1a506 100644 --- a/ghc/ghc.mk +++ b/ghc/ghc.mk @@ -11,8 +11,8 @@ # ----------------------------------------------------------------------------- # ToDo -ghc_USES_CABAL = NO -# ghc_PACKAGE = ghc-bin +ghc_USES_CABAL = YES +ghc_PACKAGE = ghc-bin ghc_stage1_HC_OPTS = $(GhcStage1HcOpts) ghc_stage2_HC_OPTS = $(GhcStage2HcOpts) |