mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
tools: make buildtimes-cabal: show times without double compilation
This commit is contained in:
parent
9b2bed8e41
commit
0b53035c7a
8
Makefile
8
Makefile
@ -249,8 +249,12 @@ build: \
|
|||||||
$(STACK) build
|
$(STACK) build
|
||||||
|
|
||||||
buildtimes: \
|
buildtimes: \
|
||||||
$(call def-help,buildtimes, build hledger-lib showing just the GHC codegen time and allocation for each module)
|
$(call def-help,buildtimes, build hledger-lib showing just GHC codegen times/allocations)
|
||||||
$(STACK) build hledger-lib --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep ^CodeGen
|
time ($(STACK) build hledger-lib --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep ^CodeGen)
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
# check-setup: \
|
# check-setup: \
|
||||||
# $(call def-help,check-setup,\
|
# $(call def-help,check-setup,\
|
||||||
|
Loading…
Reference in New Issue
Block a user