From 7de5d6d7ffee650240a04025de144e663f84848a Mon Sep 17 00:00:00 2001 From: Harendra Kumar Date: Mon, 8 Feb 2021 18:43:36 +0530 Subject: [PATCH] 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. --- .github/workflows/haskell.yml | 1 + cabal.project.ci | 3 --- test/streamly-tests.cabal | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index ed92c15e..a0fe5119 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -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 diff --git a/cabal.project.ci b/cabal.project.ci index 4e937bcc..e5a8dfc2 100644 --- a/cabal.project.ci +++ b/cabal.project.ci @@ -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 diff --git a/test/streamly-tests.cabal b/test/streamly-tests.cabal index 058fe5c6..e4ea4603 100644 --- a/test/streamly-tests.cabal +++ b/test/streamly-tests.cabal @@ -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