diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-07-01 11:42:11 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-07-01 11:42:11 +0000 |
commit | 76c520c095eb2b9d75fb66050b91097c787f5279 (patch) | |
tree | 4283324343becead1ac29c407b950ad816516cbb /ghc/ghc.mk | |
parent | fae43d78c5f7fdcdd236e187d07d140b9ad4e07c (diff) | |
download | haskell-76c520c095eb2b9d75fb66050b91097c787f5279.tar.gz |
make GhcProfiled work, and add a "prof" flavour to build.mk
Building a profiled GHC is as simple as adding
GhcLibWays += p
GhcProfiled = YES
to your build.mk and saying 'make'. Then you have a profiled
inplace/bin/ghc-stage2.
Diffstat (limited to 'ghc/ghc.mk')
-rw-r--r-- | ghc/ghc.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ghc/ghc.mk b/ghc/ghc.mk index 1bda27bfee..a17a47e547 100644 --- a/ghc/ghc.mk +++ b/ghc/ghc.mk @@ -33,8 +33,9 @@ ghc_stage2_HC_OPTS += -threaded ghc_stage3_HC_OPTS += -threaded endif -# XXX ToDp -# ifeq "$(GhcProfiled)" "YES" +ifeq "$(GhcProfiled)" "YES" +ghc_stage2_HC_OPTS += -prof +endif ghc_stage1_MODULES = Main |