Turn on the asserts in ringbuf for debug builds
This commit is contained in:
parent
bffe0f4a6c
commit
4cf5bd8d70
2 changed files with 5 additions and 0 deletions
|
|
@ -13,7 +13,9 @@
|
|||
* <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
*/
|
||||
|
||||
#ifndef KITTY_DEBUG_BUILD
|
||||
#define NDEBUG 1
|
||||
#endif
|
||||
#include "ringbuf.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -304,6 +304,9 @@ def init_env(
|
|||
cflags.append('-flto')
|
||||
ldflags.append('-flto')
|
||||
|
||||
if debug:
|
||||
cflags.append('-DKITTY_DEBUG_BUILD')
|
||||
|
||||
if profile:
|
||||
cppflags.append('-DWITH_PROFILER')
|
||||
cflags.append('-g3')
|
||||
|
|
|
|||
Loading…
Reference in a new issue