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