Make .t files when running haddock
authorIan Lynagh <ian@well-typed.com>
Tue, 14 Aug 2012 17:24:01 +0000 (18:24 +0100)
committerIan Lynagh <ian@well-typed.com>
Tue, 14 Aug 2012 17:24:01 +0000 (18:24 +0100)
These files contain the "+RTS -t --machin-readable" output, so that
we can spot performance regressions.

rules/haddock.mk

index 0fc2043..b5fc63f 100644 (file)
@@ -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