summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-04-26 19:28:39 +0100
committerIan Lynagh <igloo@earth.li>2012-04-26 19:28:39 +0100
commit3d8dd48620ac8297d183447e5fa9687521752820 (patch)
treeab87ba9509dd6d0d702a887ce7f57184ec0b4ec0 /utils
parentdd96644c9001fe3f6f78ed48caaad84f7a6820ec (diff)
downloadhaskell-3d8dd48620ac8297d183447e5fa9687521752820.tar.gz
Add SRC_[CH]C_WARNING_OPTS
This allows you to say things like SRC_HC_WARNING_OPTS += -fno-warn-unsupported-calling-conventions in mk/validate.mk. Unfortunately, we can't just use SRC_HC_OPTS, as that gets put before the more specific options (e.g. ghc-options in a .cabal file), many of which include -Wall. So now we have: ghc $(SRC_HC_OPTS) ... options from .cabal etc ... $(SRC_HC_WARNING_OPTS)
Diffstat (limited to 'utils')
-rw-r--r--utils/ghc-pkg/ghc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/ghc-pkg/ghc.mk b/utils/ghc-pkg/ghc.mk
index 11b7c8f26a..4f4967e07f 100644
--- a/utils/ghc-pkg/ghc.mk
+++ b/utils/ghc-pkg/ghc.mk
@@ -55,6 +55,7 @@ utils/ghc-pkg/dist/build/tmp/$(utils/ghc-pkg_dist_PROG)$(exeext): utils/ghc-pkg/
"$(GHC)" $(SRC_HC_OPTS) --make utils/ghc-pkg/Main.hs -o $@ \
-no-user-package-conf \
-Wall -fno-warn-unused-imports -fno-warn-warnings-deprecations \
+ $(SRC_HC_WARNING_OPTS) \
-DCABAL_VERSION=$(CABAL_VERSION) \
-DBOOTSTRAPPING \
-odir bootstrapping \