on master help sign in
Allow -Werror without inspection/fusion-plugin

We may want to use the -Werror build locally but fusion-plugin takes too much time to build, so separate the two.

commit7de5d6d7ffee650240a04025de144e663f84848a authorHarendra Kumar <harendra@composewell.com> dateMon 8 Feb 2021, 18:43 (6 years ago) parent3b37295
3 files changed+2−4
.github/workflows/haskell.yml+1 cabal.project.ci−3 test/streamly-tests.cabal+1−1
.github/workflows/haskell.yml+1
@@ -48,6 +48,7 @@ jobs:
4848 ghc_version: 8.8.3
4949 build: cabal-v2
5050 cabal_project: cabal.project.ci
51+ cabal_build_options: "--flag fusion-plugin --flag inspection"
5152 runner: ubuntu-latest
5253 - name: 8.6.5+streamk
5354 ghc_version: 8.6.5
cabal.project.ci−3
@@ -5,12 +5,9 @@ packages:
55
66package streamly
77 ghc-options: -Werror
8− flags: inspection
98
109package streamly-benchmarks
1110 ghc-options: -Werror
12− flags: inspection fusion-plugin
1311
1412package streamly-tests
1513 ghc-options: -Werror
16− flags: opt fusion-plugin
test/streamly-tests.cabal+1−1
@@ -103,7 +103,7 @@ common threading-options
103103 -with-rtsopts=-N
104104
105105common optimization-options
106− if flag(opt)
106+ if flag(opt) || flag(fusion-plugin)
107107 ghc-options: -O2
108108 -fdicts-strict
109109 -fmax-worker-args=16