;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
|
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
|
# install the hledger executables with ghc-debug support to bin/hledger*-dbg
|
||||||
@installdbg:
|
@installdbg *STACKARGS:
|
||||||
$STACK install --local-bin-path bin --flag hledger-lib:ghcdebug --flag hledger:ghcdebug --flag hledger-ui:ghcdebug --flag hledger-web:ghcdebug
|
$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
|
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+
|
# # 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:
|
Then build lib and executable(s) with the `ghcdebug` flag:
|
||||||
```cli
|
```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:
|
When the build is right, --version should mention ghc-debug:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user