summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-07-27 15:00:21 +0100
committerIan Lynagh <igloo@earth.li>2011-07-27 15:01:15 +0100
commit6942b112082fbcdff5c66f06f56fdd336861da47 (patch)
treec284162de3bbb670aa43a5233c25006ab6c38972
parent30ccc9f39dd2cf1ad14e6116778aa1fd94526c19 (diff)
downloadhaskell-6942b112082fbcdff5c66f06f56fdd336861da47.tar.gz
Don't fail validate due to warnings in Cabal
Duncan says that Cabal isn't guaranteed to be warning-free.
-rw-r--r--mk/validate-settings.mk5
-rw-r--r--utils/ghc-cabal/ghc.mk3
2 files changed, 7 insertions, 1 deletions
diff --git a/mk/validate-settings.mk b/mk/validate-settings.mk
index 9f06417ea8..f4c5162607 100644
--- a/mk/validate-settings.mk
+++ b/mk/validate-settings.mk
@@ -54,6 +54,11 @@ endif
######################################################################
# Disable some warnings in packages we use
+# Cabal doesn't promise to be warning-free
+utils/ghc-cabal_dist_EXTRA_HC_OPTS += -w
+libraries/Cabal/cabal_dist-boot_EXTRA_HC_OPTS += -w
+libraries/Cabal/cabal_dist-install_EXTRA_HC_OPTS += -w
+
# Temporarily turn off incomplete-pattern warnings for containers
libraries/containers_dist-install_EXTRA_HC_OPTS += -fno-warn-incomplete-patterns
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk
index bb28a3a2f9..39a26f07d3 100644
--- a/utils/ghc-cabal/ghc.mk
+++ b/utils/ghc-cabal/ghc.mk
@@ -34,7 +34,8 @@ $(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(GHC_CABAL_DIR)/Main.hs | $
-hidir bootstrapping \
-ilibraries/Cabal/cabal \
-ilibraries/filepath \
- -ilibraries/hpc
+ -ilibraries/hpc \
+ $(utils/ghc-cabal_dist_EXTRA_HC_OPTS)
touch $@
# touch is required, because otherwise if mkdirhier is newer, we