tools: make buildtimes*: also build hledger executable

This commit is contained in:
Simon Michael 2022-03-25 09:01:30 -10:00
parent 0b53035c7a
commit 0c9829d004

View File

@ -249,12 +249,12 @@ build: \
$(STACK) build $(STACK) build
buildtimes: \ buildtimes: \
$(call def-help,buildtimes, build hledger-lib showing just GHC codegen times/allocations) $(call def-help,buildtimes, build hledger showing just GHC codegen times/allocations)
time ($(STACK) build hledger-lib --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep ^CodeGen) time ($(STACK) build hledger --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep 'CodeGen \[.*time=')
buildtimes-cabal: \ 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)) $(call def-help,buildtimes-cabal, build hledger showing just GHC codegen times/allocations avoiding double compilation)
cabal clean; time (cabal build ./hledger-lib --disable-library-vanilla --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep ^CodeGen) 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: \ # check-setup: \
# $(call def-help,check-setup,\ # $(call def-help,check-setup,\