diff options
author | NRK <nrk@disroot.org> | 2023-05-09 02:34:28 +0200 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2023-05-09 02:34:28 +0200 |
commit | 657080a7e55843e351fa6ce41e4ce315eab62b67 (patch) | |
tree | bc5c0ebba4e8742887552c8cb5d506b0f4b50b5a /etc/woodpecker/analysis.sh | |
parent | 733916ad70b5b2d92e7adfecdf53a74dd4617b74 (diff) | |
download | nsxiv-657080a7e55843e351fa6ce41e4ce315eab62b67.tar.zst |
config.mk: default to `-O2` and `-DNDEBUG` (#435)
assertions are for debugging purposes, and so shouldn't be enabled for
"release" builds. disable it by default by using `-DNDEBUG`.
`-O2` on gcc/clang will result it slightly better binary. on tcc it'll
be ignored. and since -O is specified by POSIX there shouldn't be any
portability concern.
additionally add a (commented out) recommended debug build for gcc/clang
with address and undefined sanitizers turned on.
Closes: https://codeberg.org/nsxiv/nsxiv/issues/424
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/435
Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
Reviewed-by: eylles <eylles@noreply.codeberg.org>
Diffstat (limited to 'etc/woodpecker/analysis.sh')
0 files changed, 0 insertions, 0 deletions