Add "no-charts" build option
In a build with the "dev" flag we build charting executable. However, "Charts"
package is a heavy dependency, takes lot of time to build and is not often up
to date with newer compilers making the cabal new-build fail. With this commit
we can use "no-charts" flag to disable charting to let the build proceed with
the "dev" flag.
commitdffb57fee0cdc075cf6a3b1555bd5a19fa186114
authorHarendra Kumar <harendra.kumar@gmail.com>
dateWed 20 Mar 2019, 15:37 (8 years ago)
parenteab3bce
streamly.cabal+6−1
@@ -110,6 +110,11 @@ flag dev
110110 manual: True
111111 default: False
112112
113+flag no-charts
114+ description: Disable chart generation
115+ manual: True
116+ default: False
117+
113118flag no-fusion
114119 description: Disable rewrite rules
115120 manual: True
@@ -628,7 +633,7 @@ executable chart
628633 default-language: Haskell2010
629634 hs-source-dirs: benchmark
630635 main-is: Chart.hs
631− if flag(dev) && !impl(ghcjs)
636+ if flag(dev) && !flag(no-charts) && !impl(ghcjs)
632637 buildable: True
633638 build-Depends:
634639 base >= 4.8 && < 5