Fix hadrian prof flavour so that it builds a profiled version of GHC
[ghc.git] / hadrian / hadrian.cabal
1 name:                hadrian
2 version:             0.1.0.0
3 synopsis:            GHC build system
4 license:             BSD3
5 license-file:        LICENSE
6 author:              Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
7 maintainer:          Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
8 copyright:           Andrey Mokhov 2014-2017
9 category:            Development
10 build-type:          Simple
11 cabal-version:       >=1.10
12
13 source-repository head
14     type:     git
15     location: https://github.com/snowleopard/hadrian
16
17 executable hadrian
18     main-is:             Main.hs
19     hs-source-dirs:      .
20                        , src
21     other-modules:       Base
22                        , Builder
23                        , CommandLine
24                        , Context
25                        , Context.Path
26                        , Context.Type
27                        , Environment
28                        , Expression
29                        , Expression.Type
30                        , Flavour
31                        , Hadrian.Builder
32                        , Hadrian.Builder.Ar
33                        , Hadrian.Builder.Sphinx
34                        , Hadrian.Builder.Tar
35                        , Hadrian.BuildPath
36                        , Hadrian.Expression
37                        , Hadrian.Haskell.Cabal
38                        , Hadrian.Haskell.Cabal.Type
39                        , Hadrian.Haskell.Cabal.Parse
40                        , Hadrian.Oracles.ArgsHash
41                        , Hadrian.Oracles.Cabal
42                        , Hadrian.Oracles.Cabal.Rules
43                        , Hadrian.Oracles.Cabal.Type
44                        , Hadrian.Oracles.DirectoryContents
45                        , Hadrian.Oracles.Path
46                        , Hadrian.Oracles.TextFile
47                        , Hadrian.Package
48                        , Hadrian.Target
49                        , Hadrian.Utilities
50                        , Oracles.Flag
51                        , Oracles.Setting
52                        , Oracles.ModuleFiles
53                        , Oracles.TestSettings
54                        , Packages
55                        , Rules
56                        , Rules.BinaryDist
57                        , Rules.Clean
58                        , Rules.Compile
59                        , Rules.Configure
60                        , Rules.Dependencies
61                        , Rules.Documentation
62                        , Rules.Generate
63                        , Rules.Gmp
64                        , Rules.Libffi
65                        , Rules.Library
66                        , Rules.Nofib
67                        , Rules.Program
68                        , Rules.Register
69                        , Rules.Selftest
70                        , Rules.SimpleTargets
71                        , Rules.SourceDist
72                        , Rules.Test
73                        , Settings
74                        , Settings.Builders.Alex
75                        , Settings.Builders.Cabal
76                        , Settings.Builders.Common
77                        , Settings.Builders.Cc
78                        , Settings.Builders.Configure
79                        , Settings.Builders.DeriveConstants
80                        , Settings.Builders.GenPrimopCode
81                        , Settings.Builders.Ghc
82                        , Settings.Builders.GhcPkg
83                        , Settings.Builders.Haddock
84                        , Settings.Builders.Happy
85                        , Settings.Builders.Hsc2Hs
86                        , Settings.Builders.HsCpp
87                        , Settings.Builders.Ld
88                        , Settings.Builders.Make
89                        , Settings.Builders.RunTest
90                        , Settings.Builders.Xelatex
91                        , Settings.Default
92                        , Settings.Flavours.Common
93                        , Settings.Flavours.Development
94                        , Settings.Flavours.Performance
95                        , Settings.Flavours.Profiled
96                        , Settings.Flavours.Quick
97                        , Settings.Flavours.QuickCross
98                        , Settings.Flavours.Quickest
99                        , Settings.Packages
100                        , Settings.Warnings
101                        , Stage
102                        , Target
103                        , UserSettings
104                        , Utilities
105                        , Way
106                        , Way.Type
107     default-language:    Haskell2010
108     default-extensions:  DeriveFunctor
109                        , DeriveGeneric
110                        , FlexibleInstances
111                        , GeneralizedNewtypeDeriving
112                        , LambdaCase
113                        , RecordWildCards
114                        , ScopedTypeVariables
115                        , TupleSections
116     other-extensions:    MultiParamTypeClasses
117                        , TypeFamilies
118     build-depends:       base                 >= 4.8     && < 5
119                        , Cabal                >= 2.5     && < 2.6
120                        , containers           >= 0.5     && < 0.7
121                        , directory            >= 1.2     && < 1.4
122                        , extra                >= 1.4.7
123                        , mtl                  == 2.2.*
124                        , parsec               >= 3.1     && < 3.2
125                        , QuickCheck           >= 2.6     && < 2.13
126                        , shake                >= 0.16.4
127                        , transformers         >= 0.4     && < 0.6
128                        , unordered-containers >= 0.2.1   && < 0.3
129     build-tools:         alex  >= 3.1
130                        , happy >= 1.19.4
131     ghc-options:       -Wall
132                        -Wincomplete-record-updates
133                        -Wredundant-constraints
134                        -fno-warn-name-shadowing
135                        -rtsopts
136                        -- * -I0: Disable idle GC to avoid redundant GCs while
137                        --        waiting for external processes
138                        -- * -qg: Don't use parallel GC as the synchronization
139                        --        time tends to eat any benefit.
140                        "-with-rtsopts=-I0 -qg"
141                        -threaded