X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghc.cabal;h=3ee1401703a977febc3750770319797b963fbbe4;hb=3a61d75c70f61a2b919e94e85ffe1166e7151b5b;hp=5a628415f53636f1ffe6bc1083c0891f6389f706;hpb=e1ca71716cd40aecf23f572e661e0285dd1b8b3a;p=ghc-hetmet.git diff --git a/compiler/ghc.cabal b/compiler/ghc.cabal index 5a62841..3ee1401 100644 --- a/compiler/ghc.cabal +++ b/compiler/ghc.cabal @@ -3,7 +3,7 @@ Name: ghc Version: 6.9 Copyright: XXX -- License: XXX -License-File: XXX +License-File: ../LICENSE Author: XXX Maintainer: glasgow-haskell-users@haskell.org Homepage: http://www.haskell.org/ghc/ @@ -14,17 +14,31 @@ Category: XXX Build-Type: Simple Cabal-Version: >= 1.2 +Flag base4 + Description: Choose the even newer, even smaller, split-up base package. + Flag base3 Description: Choose the new smaller, split-up base package. Flag dynlibs Description: Dynamic library support + Default: False + Manual: True Flag editline Description: Use editline + Default: False + Manual: True Flag ghci Description: Build GHCi support. + Default: False + Manual: True + +Flag ncg + Description: Build the NCG. + Default: False + Manual: True Flag stage1 Description: Is this stage 1? @@ -32,16 +46,21 @@ Flag stage1 Library Exposed: False + if flag(base4) + Build-Depends: base >= 4 && < 5 if flag(base3) - Build-Depends: base >= 3 && < 5, - directory >= 1 && < 1.1, + Build-Depends: base >= 3 && < 4 + if !flag(base3) && !flag(base4) + Build-Depends: base < 3 + + if flag(base3) || flag(base4) + Build-Depends: directory >= 1 && < 1.1, process >= 1 && < 1.1, bytestring >= 0.9 && < 0.10, old-time >= 1 && < 1.1, containers >= 0.1 && < 0.2, array >= 0.1 && < 0.2 - else - Build-Depends: base < 3 + Build-Depends: filepath >= 1 && < 1.2 Build-Depends: haskell98, Cabal, hpc if os(windows) @@ -60,6 +79,9 @@ Library CPP-Options: -DGHCI Include-Dirs: ../libffi/build/include + if !flag(ncg) + CPP-Options: -DOMIT_NATIVE_CODEGEN + -- GHC 6.4.2 needs to be able to find WCsubst.c, which needs to be -- able to find WCsubst.h Include-Dirs: ../libraries/base/cbits, ../libraries/base/include @@ -67,7 +89,7 @@ Library Extensions: CPP, MagicHash, UnboxedTuples, PatternGuards, ForeignFunctionInterface, EmptyDataDecls, TypeSynonymInstances, MultiParamTypeClasses, - FlexibleInstances, Rank2Types, PatternSignatures + FlexibleInstances, Rank2Types, ScopedTypeVariables Include-Dirs: . parser utils @@ -98,7 +120,6 @@ Library hsSyn iface main - nativeGen parser prelude profiling @@ -267,26 +288,9 @@ Library ParsePkgConf PprTyThing StaticFlags + StaticFlagParser SysTools TidyPgm - AsmCodeGen - MachCodeGen - MachInstrs - MachRegs - NCGMonad - PositionIndependentCode - PprMach - RegAllocColor - RegAllocInfo - RegAllocLinear - RegAllocStats - RegArchBase - RegArchX86 - RegCoalesce - RegLiveness - RegSpill - RegSpillClean - RegSpillCost Ctype HaddockLex HaddockParse @@ -418,6 +422,30 @@ Library VectUtils Vectorise + if flag(ncg) + hs-source-dirs: + nativeGen + + Exposed-Modules: + AsmCodeGen + MachCodeGen + MachInstrs + MachRegs + NCGMonad + PositionIndependentCode + PprMach + RegAllocColor + RegAllocInfo + RegAllocLinear + RegAllocStats + RegArchBase + RegArchX86 + RegCoalesce + RegLiveness + RegSpill + RegSpillClean + RegSpillCost + if flag(ghci) Exposed-Modules: DsMeta