[commit: ghc] ghc-7.10: Only apply WERROR to Stage2HcOpts and LibHcOpts (8199609)

git at git.haskell.org git at git.haskell.org
Sun Nov 1 11:06:44 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/81996094fc5514c186681b37c6dbe0f47afa9237/ghc

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

commit 81996094fc5514c186681b37c6dbe0f47afa9237
Author: Ben Gamari <ben at well-typed.com>
Date:   Fri Oct 30 09:53:19 2015 -0500

    Only apply WERROR to Stage2HcOpts and LibHcOpts
    
    This prevents warnings from the bootstrap compiler from killing validation


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

81996094fc5514c186681b37c6dbe0f47afa9237
 mk/validate-settings.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mk/validate-settings.mk b/mk/validate-settings.mk
index 351ea83..7c75bd4 100644
--- a/mk/validate-settings.mk
+++ b/mk/validate-settings.mk
@@ -31,10 +31,10 @@ SRC_CC_WARNING_OPTS += -Wno-unknown-pragmas
 endif
 
 SRC_CC_OPTS     += $(WERROR) -Wall
-SRC_HC_OPTS     += $(WERROR) -Wall
-
+SRC_HC_OPTS     += -Wall
 GhcStage1HcOpts += -fwarn-tabs
-GhcStage2HcOpts += -fwarn-tabs
+GhcStage2HcOpts += -fwarn-tabs $(WERROR)
+GhcLibHcOpts    += $(WERROR)
 
 utils/hpc_dist-install_EXTRA_HC_OPTS += -fwarn-tabs
 



More information about the ghc-commits mailing list