on master help sign in
Add fast flag to disable building with optimizations.
987b588Adam Bergmark
aeson.cabal+11−1
@@ -58,6 +58,11 @@ flag developer
58 default: False
58 default: False
59 manual: True
59 manual: True
60
60
61+flag fast
62+ description: compile without optimizations
63+ default: False
64+ manual: True
65+
61flag bytestring-builder
66flag bytestring-builder
62 description: Depend on the bytestring-builder package for backwards compatibility.
67 description: Depend on the bytestring-builder package for backwards compatibility.
63 default: False
68 default: False
@@ -132,8 +137,13 @@ library
132 if flag(developer)
137 if flag(developer)
133 ghc-options: -Werror
138 ghc-options: -Werror
134 ghc-prof-options: -auto-all
139 ghc-prof-options: -auto-all
140+ else
141+ ghc-options: -Wall
135
142
143+ if flag(fast)
144+ ghc-options: -O0
145+ else
136− ghc-options: -O2 -Wall
146+ ghc-options: -O2
137
147
138 include-dirs: include
148 include-dirs: include
139
149
stack-lts6.yaml+2
@@ -6,5 +6,7 @@ packages:
6extra-deps:
6extra-deps:
7- semigroups-0.18.2
7- semigroups-0.18.2
8flags:
8flags:
9+ aeson:
10+ fast: true
9 semigroups:
11 semigroups:
10 bytestring-builder: false
12 bytestring-builder: false