mirror of
https://github.com/simonmichael/hledger.git
synced 2024-10-06 10:57:30 +03:00
;doc: DEVFAQ, just: installdbg: simplify ghc-debug build command
This commit is contained in:
parent
9ac905459f
commit
543e96b6bc
4
Justfile
4
Justfile
@ -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+
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user