From 1d1062e9f9c3b35a66d1b4f4f20dd74db83606c5 Mon Sep 17 00:00:00 2001
From: Ian Lynagh <ian@well-typed.com>
Date: Tue, 14 Aug 2012 18:24:01 +0100
Subject: [PATCH] Make .t files when running haddock

These files contain the "+RTS -t --machin-readable" output, so that
we can spot performance regressions.
---
 rules/haddock.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rules/haddock.mk b/rules/haddock.mk
index 0fc2043d6784..b5fc63f5e6b1 100644
--- a/rules/haddock.mk
+++ b/rules/haddock.mk
@@ -57,7 +57,8 @@ endif
 	  $$(foreach opt,$$($1_$2_v_ALL_HC_OPTS),--optghc=$$(opt)) \
 	  $$($1_$2_HADDOCK_FLAGS) $$($1_$2_HADDOCK_OPTS) \
 	  $$($1_$2_HS_SRCS) \
-	  $$($1_$2_EXTRA_HADDOCK_SRCS)
+	  $$($1_$2_EXTRA_HADDOCK_SRCS) \
+	  +RTS -t$$@.t --machine-readable
 
 # --no-tmp-comp-dir above is important: it saves a few minutes in a
 # validate.  This flag lets Haddock use the pre-compiled object files
-- 
GitLab