summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorsimonpj@microsoft.com <unknown>2010-05-06 16:07:50 +0000
committersimonpj@microsoft.com <unknown>2010-05-06 16:07:50 +0000
commitc6144cbcdb49ced6aa8746f584e045e63e24b168 (patch)
treef131bcde80cb5db0c5baea83f4afb1b10765c606 /ghc.mk
parent60789c09584c8a12fa27289605221942fb05764d (diff)
downloadhaskell-c6144cbcdb49ced6aa8746f584e045e63e24b168.tar.gz
Use -Wwarn for the binary package, becuase it has redundant UNPACK pragmas
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index f770d22140..b217ce7c85 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -627,12 +627,29 @@ include $(patsubst %, %/ghc.mk, $(BUILD_DIRS))
GhcLibHcOpts += -fno-warn-deprecated-flags
GhcBootLibHcOpts += -fno-warn-deprecated-flags
+# ----------------------------------------------
+# Per-package compiler flags
+#
+# If you want to add per-package compiler flags, this
+# is the place to do it. Do it like this for package <pkg>
+#
+# libraries/<pkg>_dist-boot_HC_OPTS += -Wwarn
+# libraries/<pkg>_dist-install_HC_OPTS += -Wwarn
+
+
# Add $(GhcLibHcOpts) to all library builds
$(foreach pkg,$(PACKAGES) $(PACKAGES_STAGE2),$(eval libraries/$(pkg)_dist-install_HC_OPTS += $$(GhcLibHcOpts)))
# XXX Hack; remove this
+# Use -Wwarn for dph
$(foreach pkg,$(PACKAGES_STAGE2),$(eval libraries/$(pkg)_dist-install_HC_OPTS += -Wwarn))
+# XXX Hack; remove this
+# Use -Wwarn for 'binary' becuase it has redundant UNPACK pragmas
+libraries/binary_dist-install_HC_OPTS += -Wwarn
+libraries/binary_dist-boot_HC_OPTS += -Wwarn
+
+# ----------------------------------------------
# A useful pseudo-target
.PHONY: stage1_libs
stage1_libs : $(ALL_STAGE1_LIBS)