From 355b48c33d00ec17d3c0a989b5bf24466c42c2fb Mon Sep 17 00:00:00 2001 From: Rodrigo Mesquita Date: Fri, 5 Apr 2024 11:40:19 +0100 Subject: [PATCH] Only use -Werror in validate Reverts a change that made `-Werror` be applied when building in tree Cabal, even when just developing. Puts `-Werror` back in the `cabal.project.validate` validation project. Fixes #9866 --- cabal.project.validate | 2 ++ project-cabal/ghc-options.config | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cabal.project.validate b/cabal.project.validate index aae9375fb34..52c78411107 100644 --- a/cabal.project.validate +++ b/cabal.project.validate @@ -5,3 +5,5 @@ import: project-cabal/constraints.config tests: True write-ghc-environment-files: never +program-options + ghc-options: -Werror diff --git a/project-cabal/ghc-options.config b/project-cabal/ghc-options.config index e3ece385c5c..c26dfae7505 100644 --- a/project-cabal/ghc-options.config +++ b/project-cabal/ghc-options.config @@ -1,2 +1,2 @@ program-options - ghc-options: -fno-ignore-asserts -Werror + ghc-options: -fno-ignore-asserts