Skip to content

Commit 71160de

Browse files
committed
build: Enable ccan debug code for debug build
The ccan library has support debugging, let's enable this when building the debug version of the library. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 5c36a5f commit 71160de

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ccan/meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ sources += files([
1111
'ccan/str/debug.c',
1212
'ccan/str/str.c',
1313
])
14+
15+
if get_option('buildtype') == 'debug'
16+
add_project_arguments('-DCCAN_LIST_DEBUG=1', language : ['c', 'cpp'])
17+
add_project_arguments('-DCCAN_STR_DEBUG=1', language : ['c', 'cpp'])
18+
endif

0 commit comments

Comments
 (0)