;doc: DEVFAQ, just: installdbg: simplify ghc-debug build command

This commit is contained in:
Simon Michael 2024-05-01 22:46:09 -10:00
parent 9ac905459f
commit 543e96b6bc
2 changed files with 3 additions and 3 deletions

View File

@ -547,8 +547,8 @@ INSTALLING:
for e in hledger hledger-ui hledger-web ; do mv bin/old/$e bin/old/$e-{{ VER }}; echo "bin/old/$e-{{ VER }}"; done
# install the hledger executables with ghc-debug support to bin/hledger*-dbg
@installdbg:
$STACK install --local-bin-path bin --flag hledger-lib:ghcdebug --flag hledger:ghcdebug --flag hledger-ui:ghcdebug --flag hledger-web:ghcdebug
@installdbg *STACKARGS:
$STACK install --local-bin-path bin --flag '*:ghcdebug' {{ STACKARGS }}
for e in hledger hledger-ui hledger-web ; do mv bin/$e bin/$e-dbg; echo "bin/$e-dbg"; done
# # make must be GNU Make 4.3+

View File

@ -59,7 +59,7 @@ You might need to stop background builders like HLS, to avoid a fight over the b
Then build lib and executable(s) with the `ghcdebug` flag:
```cli
$ stack build --flag hledger-lib:ghcdebug --flag hledger:ghcdebug --flag hledger-ui:ghcdebug --flag hledger-web:ghcdebug
$ stack build --flag='*:ghcdebug'
```
When the build is right, --version should mention ghc-debug: