From 8249740f9acc5293d6d0aa11c583e193bd04135e Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Thu, 9 Dec 2021 13:41:02 +0100 Subject: [PATCH] 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 --- ccan/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ccan/meson.build b/ccan/meson.build index 223bc71b..7573265b 100644 --- a/ccan/meson.build +++ b/ccan/meson.build @@ -3,3 +3,8 @@ sources += files([ 'ccan/str/debug.c', 'ccan/str/str.c', ]) + +if get_option('buildtype') == 'debug' + add_project_arguments('-DCCAN_LIST_DEBUG=1', language : ['c', 'cpp']) + add_project_arguments('-DCCAN_STR_DEBUG=1', language : ['c', 'cpp']) +endif -- 2.51.0