on master help sign in
Add fast flag to disable building with optimizations.
commit987b588fc7346ed284ce42c1ebc8b55ed228ce25 authorAdam Bergmark <adam@bergmark.nl> dateSat 30 Jul 2016, 16:51 (10 years ago) parent7dbe36c
2 files changed+13−1
aeson.cabal+11−1 stack-lts6.yaml+2
aeson.cabal+11−1
@@ -58,6 +58,11 @@ flag developer
5858 default: False
5959 manual: True
6060
61+flag fast
62+ description: compile without optimizations
63+ default: False
64+ manual: True
65+
6166flag bytestring-builder
6267 description: Depend on the bytestring-builder package for backwards compatibility.
6368 default: False
@@ -132,8 +137,13 @@ library
132137 if flag(developer)
133138 ghc-options: -Werror
134139 ghc-prof-options: -auto-all
140+ else
141+ ghc-options: -Wall
135142
136− ghc-options: -O2 -Wall
143+ if flag(fast)
144+ ghc-options: -O0
145+ else
146+ ghc-options: -O2
137147
138148 include-dirs: include
139149
stack-lts6.yaml+2
@@ -6,5 +6,7 @@ packages:
66extra-deps:
77- semigroups-0.18.2
88flags:
9+ aeson:
10+ fast: true
911 semigroups:
1012 bytestring-builder: false