Flag ghci
Description: Build GHCi support.
+Flag ncg
+ Description: Build the NCG.
+
Flag stage1
Description: Is this stage 1?
-Flag windows
- Description: On a Windows machine
-
Library
+ Exposed: False
+
if flag(base3)
- Build-Depends: base >= 3 && < 4,
+ Build-Depends: base >= 3 && < 5,
directory >= 1 && < 1.1,
process >= 1 && < 1.1,
bytestring >= 0.9 && < 0.10,
Build-Depends: base < 3
Build-Depends: filepath >= 1 && < 1.2
Build-Depends: haskell98, Cabal, hpc
- if flag(windows)
+ if os(windows)
Build-Depends: Win32
else
Build-Depends: unix
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
Include-Dirs: . parser utils
- -- XXX Change these directory names: The stage2 files are what
- -- we want for all stages >= 1
if flag(stage1)
Include-Dirs: stage1
else
- Include-Dirs: stage2
+ Include-Dirs: stage2plus
Install-Includes: HsVersions.h, ghc_boot_platform.h
c-sources:
hsSyn
iface
main
- nativeGen
parser
prelude
profiling
BasicTypes
DataCon
Demand
+ Exception
Id
IdInfo
Literal
CoreUnfold
CoreUtils
ExternalCore
+ MkCore
MkExternalCore
PprCore
PprExternalCore
StaticFlags
SysTools
TidyPgm
- AsmCodeGen
- MachCodeGen
- MachInstrs
- MachRegs
- NCGMonad
- PositionIndependentCode
- PprMach
- RegAllocColor
- RegAllocInfo
- RegAllocLinear
- RegAllocStats
- RegArchBase
- RegArchX86
- RegCoalesce
- RegLiveness
- RegSpill
- RegSpillClean
- RegSpillCost
Ctype
HaddockLex
HaddockParse
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