[commit: ghc] master: Separate warning flags from other flags in validate-settings.mk (c04a984)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/c04a98498cd1bd706ae9ce7b4c672af4b917a10e

>---------------------------------------------------------------

commit c04a98498cd1bd706ae9ce7b4c672af4b917a10e
Author: Ian Lynagh <[email protected]>
Date:   Fri Nov 23 17:22:42 2012 +0000

    Separate warning flags from other flags in validate-settings.mk

>---------------------------------------------------------------

 mk/validate-settings.mk |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/mk/validate-settings.mk b/mk/validate-settings.mk
index 03f4e71..fa54300 100644
--- a/mk/validate-settings.mk
+++ b/mk/validate-settings.mk
@@ -7,6 +7,9 @@ SRC_HC_WARNING_OPTS =
 
 HADDOCK_DOCS    = YES
 
+#####################
+# Warnings
+
 # Debian doesn't turn -Werror=unused-but-set-variable on by default, so
 # we turn it on explicitly for consistency with other users
 ifeq "$(GccLT46)" "NO"
@@ -16,11 +19,16 @@ SRC_CC_WARNING_OPTS += -Wno-error=inline
 endif
 
 SRC_CC_OPTS     += $(WERROR) -Wall
-SRC_HC_OPTS     += $(WERROR) -Wall -H64m -O0
+SRC_HC_OPTS     += $(WERROR) -Wall
+
+GhcStage1HcOpts += -fwarn-tabs
+GhcStage2HcOpts += -fwarn-tabs
 
-GhcStage1HcOpts += -O -fwarn-tabs
+#####################
+SRC_HC_OPTS     += -H64m -O0
 
-GhcStage2HcOpts += -O -fwarn-tabs -dcore-lint
+GhcStage1HcOpts += -O
+GhcStage2HcOpts += -O -dcore-lint
 # Using -O (rather than -O0) here bringes my validate down from 22mins to 16 mins.
 # Compiling stage2 takes longer, but we gain a faster haddock, faster
 # running of the tests, and faster building of the utils to be installed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.