[commit: ghc] wip/nfs-locking: Add support for turnWarningsIntoErrors in Settings/User.hs. (3d90d06)
git at git.haskell.org
git at git.haskell.org
Thu Oct 26 23:27:32 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/3d90d06aa59af43da7edb79dbd930d6fa34c5b9f/ghc
>---------------------------------------------------------------
commit 3d90d06aa59af43da7edb79dbd930d6fa34c5b9f
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date: Tue Dec 22 05:00:31 2015 +0000
Add support for turnWarningsIntoErrors in Settings/User.hs.
>---------------------------------------------------------------
3d90d06aa59af43da7edb79dbd930d6fa34c5b9f
src/Settings/User.hs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/Settings/User.hs b/src/Settings/User.hs
index 4c7a5f4..e16fb27 100644
--- a/src/Settings/User.hs
+++ b/src/Settings/User.hs
@@ -3,7 +3,7 @@ module Settings.User (
userProgramPath, userKnownPackages, integerLibrary,
trackBuildSystem, buildHaddock, validating, ghciWithDebugger, ghcProfiled,
ghcDebugged, dynamicGhcPrograms, laxDependencies, buildSystemConfigFile,
- verboseCommands
+ verboseCommands, turnWarningsIntoErrors
) where
import Expression
@@ -88,3 +88,7 @@ buildSystemConfigFile = False
-- only, e.g.: verboseCommands = package ghcPrim
verboseCommands :: Predicate
verboseCommands = return False
+
+-- | To enable -Werror in Stage2 set turnWarningsIntoErrors = stage2.
+turnWarningsIntoErrors :: Predicate
+turnWarningsIntoErrors = return False
More information about the ghc-commits
mailing list