chore(build): add profiling options
This commit is contained in:
parent
c7f8663f71
commit
dfd0f57f90
2
build.sh
2
build.sh
@ -9,5 +9,5 @@ set -e
|
||||
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en .stack-work.lock "$0" "$@" || :
|
||||
|
||||
echo "Building..."
|
||||
stack build --fast --flag uniworx:-library-only --flag uniworx:dev $@
|
||||
stack build --fast --profile --library-profiling --executable-profiling --flag uniworx:-library-only --flag uniworx:dev $@
|
||||
echo "Done."
|
||||
|
||||
@ -257,7 +257,7 @@ ghc-options:
|
||||
- -j
|
||||
- -freduction-depth=0
|
||||
- -prof
|
||||
- -fprof-auto
|
||||
- -fprof-auto-call
|
||||
when:
|
||||
- condition: flag(pedantic)
|
||||
ghc-options:
|
||||
|
||||
@ -7,8 +7,11 @@ flags:
|
||||
cffi: true
|
||||
|
||||
rebuild-ghc-options: true
|
||||
ghc-options:
|
||||
"$everything": -fno-prof-auto
|
||||
#ghc-options:
|
||||
# "$everything": -fno-prof-auto
|
||||
|
||||
library-profiling: true
|
||||
executable-profiling: true
|
||||
|
||||
nix:
|
||||
packages: []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user