summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-12-14 10:13:40 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-12-14 10:13:40 +0000
commit99b6e6ac44c6c610b0d60e3b70a2341c83d23106 (patch)
treea12b22a4edd1d8d9ac24a7a323c7959b71183709
parent2b091a6c5352ef2e745e879920f48f27567ec1e8 (diff)
downloadhaskell-99b6e6ac44c6c610b0d60e3b70a2341c83d23106.tar.gz
comments on SRC_HC_OPTS (#4829)
-rw-r--r--mk/config.mk.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 4e61732c0f..5b04f6b355 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -386,6 +386,23 @@ WINDOWS_INSTALLER = $(WINDOWS_INSTALLER_BASE)$(exeext)
#
# SRC_HC_OPTS += -O
+
+# SRC_HC_OPTS includes flags to be added to *every* Haskell
+# compilation. Setting SRC_HC_OPTS is a good way to set the default
+# optimisation level (-O) and heap size (-H<size>).
+#
+# SRC_HC_OPTS is *not* for adding flags that are required to make your
+# build work. Examples:
+#
+# - instead of using -pgmc/-pgma-/-pgml, use the --with-gcc option to configure
+#
+# - if you need -optc, -opta, or -optl flags, the CONF_CC_* and CONF_LD_*
+# variables are more appropriate (set via configure)
+#
+# Note that SRC_HC_OPTS are added to every Haskell compilation,
+# including when using the bootstrapping compiler (stage 0), So don't
+# put options here that are only supported by very recent GHCs.
+#
SRC_HC_OPTS += -H32m -O
# These flags make flex 8-bit