summaryrefslogtreecommitdiff
path: root/compiler/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-08-30 19:13:05 +0000
committerIan Lynagh <igloo@earth.li>2008-08-30 19:13:05 +0000
commitd0b244f7d8c061112633a29f821a479c2355c405 (patch)
treea4dca4c6f9ee940a646a6a6e7e9d5198c61ec982 /compiler/Makefile
parentcdaa0b92ff96813b16fc351934d63080c05dece1 (diff)
downloadhaskell-d0b244f7d8c061112633a29f821a479c2355c405.tar.gz
If we want a profiled GHC then use -auto-all when building the GHC lib
Diffstat (limited to 'compiler/Makefile')
-rw-r--r--compiler/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
index c511eebcdf..03f9c1e619 100644
--- a/compiler/Makefile
+++ b/compiler/Makefile
@@ -165,6 +165,10 @@ endif
# profiling enabled (GhcProfiled = YES).
ifneq "$(GhcLibProfiled) $(GhcProfiled)" "NO NO"
CONFIGURE_FLAGS_STAGE2 += --enable-library-profiling
+# And if we're profiling GHC then we want lots of SCCs
+ifeq "$(GhcProfiled)" "YES"
+CONFIGURE_FLAGS_STAGE2 += --ghc-option=-auto-all
+endif
endif
ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"