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.
This commit is contained in:
Harendra Kumar 2021-02-08 18:43:36 +05:30 committed by Harendra Kumar
parent 3b37295b29
commit 7de5d6d7ff
3 changed files with 2 additions and 4 deletions

View File

@ -48,6 +48,7 @@ jobs:
ghc_version: 8.8.3
build: cabal-v2
cabal_project: cabal.project.ci
cabal_build_options: "--flag fusion-plugin --flag inspection"
runner: ubuntu-latest
- name: 8.6.5+streamk
ghc_version: 8.6.5

View File

@ -5,12 +5,9 @@ packages:
package streamly
ghc-options: -Werror
flags: inspection
package streamly-benchmarks
ghc-options: -Werror
flags: inspection fusion-plugin
package streamly-tests
ghc-options: -Werror
flags: opt fusion-plugin

View File

@ -103,7 +103,7 @@ common threading-options
-with-rtsopts=-N
common optimization-options
if flag(opt)
if flag(opt) || flag(fusion-plugin)
ghc-options: -O2
-fdicts-strict
-fmax-worker-args=16