From 0c9829d0044b51ebda0c23c80d6717d203fe06ed Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 25 Mar 2022 09:01:30 -1000 Subject: [PATCH] tools: make buildtimes*: also build hledger executable --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e638e09b0..e01163dab 100644 --- a/Makefile +++ b/Makefile @@ -249,12 +249,12 @@ build: \ $(STACK) build buildtimes: \ - $(call def-help,buildtimes, build hledger-lib showing just GHC codegen times/allocations) - time ($(STACK) build hledger-lib --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep ^CodeGen) + $(call def-help,buildtimes, build hledger showing just GHC codegen times/allocations) + time ($(STACK) build hledger --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep 'CodeGen \[.*time=') buildtimes-cabal: \ - $(call def-help,buildtimes-cabal, build hledger-lib showing just GHC codegen times/allocations using cabal avoiding double compilation (but leaving missing files)) - cabal clean; time (cabal build ./hledger-lib --disable-library-vanilla --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep ^CodeGen) + $(call def-help,buildtimes-cabal, build hledger showing just GHC codegen times/allocations avoiding double compilation) + cabal clean; time (cabal build ./hledger-lib ./hledger --disable-library-vanilla --enable-executable-dynamic --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep 'CodeGen \[.*time=') # check-setup: \ # $(call def-help,check-setup,\