summaryrefslogtreecommitdiff
path: root/rules/build-prog.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-01-23 15:14:08 +0000
committerIan Lynagh <igloo@earth.li>2011-01-23 15:14:08 +0000
commiteb3a1aecac72d22c618b4050fb88eac9055b527a (patch)
treeb86df2bf98b480a27d41ae0a1938243c673c0225 /rules/build-prog.mk
parentdd47428295d89eb6bbf91316ac4f5a6e98b1ec70 (diff)
downloadhaskell-eb3a1aecac72d22c618b4050fb88eac9055b527a.tar.gz
Add build system profiling to build system
Diffstat (limited to 'rules/build-prog.mk')
-rw-r--r--rules/build-prog.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/build-prog.mk b/rules/build-prog.mk
index 4c07ad6308..c08c40828a 100644
--- a/rules/build-prog.mk
+++ b/rules/build-prog.mk
@@ -21,6 +21,7 @@
define build-prog
$(call trace, build-prog($1,$2,$3))
+$(call profStart, build-prog($1,$2,$3))
# $1 = dir
# $2 = distdir
# $3 = GHC stage to use (0 == bootstrapping compiler)
@@ -40,6 +41,7 @@ $(call clean-target,$1,$2,$1/$2)
ifneq "$$($1_$2_NOT_NEEDED)" "YES"
$$(eval $$(call build-prog-helper,$1,$2,$3))
endif
+$(call profEnd, build-prog($1,$2,$3))
endef