summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-09-10 11:11:15 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-09-10 11:11:15 +0000
commit8a2b4cfc761466e51bd77e7f40d70df5c2747578 (patch)
treeb0d2bd64c0ca959966b3e1f5668a05bbaf4672f1
parent930421d4ed09e5389e0ef4c5eef36075a6809cc0 (diff)
downloadhaskell-8a2b4cfc761466e51bd77e7f40d70df5c2747578.tar.gz
binary has unused-import warnings
-rw-r--r--ghc.mk2
-rw-r--r--mk/validate-settings.mk3
-rw-r--r--utils/ghc-pkg/ghc.mk3
3 files changed, 6 insertions, 2 deletions
diff --git a/ghc.mk b/ghc.mk
index 91b5d3d977..e2d721d98b 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -661,7 +661,7 @@ $(ghc_stage1_depfile) : $(compiler_stage1_v_LIB)
#
# If you miss any out here, then 'make -j8' will probably tell you.
#
-libraries/bin-package-db/dist-boot/build/Distribution/InstalledPackageInfo/Binary.$(v_osuf) : libraries/binary/dist-boot/build/Data/Binary.$(v_hisuf)
+libraries/bin-package-db/dist-boot/build/Distribution/InstalledPackageInfo/Binary.$(v_osuf) : libraries/binary/dist-boot/build/Data/Binary.$(v_hisuf) libraries/Cabal/dist-boot/build/Distribution/InstalledPackageInfo.$(v_hisuf)
$(foreach pkg,$(BOOT_PKGS),$(eval libraries/$(pkg)_dist-boot_HC_OPTS += $$(GhcBootLibHcOpts)))
diff --git a/mk/validate-settings.mk b/mk/validate-settings.mk
index b70a0454de..8ab5af8392 100644
--- a/mk/validate-settings.mk
+++ b/mk/validate-settings.mk
@@ -35,3 +35,6 @@ libraries/time_dist-install_EXTRA_HC_OPTS += -fno-warn-unused-do-bind
# On Windows, there are also some unused import warnings
libraries/time_dist-install_EXTRA_HC_OPTS += -fno-warn-unused-imports
+# Temporarily turn off unused-import warnings for the binary package
+libraries/binary_dist-boot_EXTRA_HC_OPTS += -fno-warn-unused-imports
+libraries/binary_dist-install_EXTRA_HC_OPTS += -fno-warn-unused-imports
diff --git a/utils/ghc-pkg/ghc.mk b/utils/ghc-pkg/ghc.mk
index ae15376468..23953e0a56 100644
--- a/utils/ghc-pkg/ghc.mk
+++ b/utils/ghc-pkg/ghc.mk
@@ -46,11 +46,12 @@ endif
endif
# depend on ghc-cabal, otherwise we build Cabal twice when building in parallel
+# The binary package is not warning-clean, so we need a few -fno-warns here.
utils/ghc-pkg/dist/build/$(utils/ghc-pkg_dist_PROG)$(exeext): utils/ghc-pkg/Main.hs utils/ghc-pkg/Version.hs $(GHC_CABAL_INPLACE) $(MKDIRHIER)
"$(MKDIRHIER)" bootstrapping
"$(MKDIRHIER)" utils/ghc-pkg/dist/build
"$(GHC)" $(SRC_HC_OPTS) --make utils/ghc-pkg/Main.hs -o $@ \
- -Wall \
+ -Wall -fno-warn-unused-imports \
-DCABAL_VERSION=$(CABAL_VERSION) \
-odir bootstrapping \
-hidir bootstrapping \