From: Daniel Wagner Date: Thu, 9 Dec 2021 12:41:02 +0000 (+0100) Subject: build: Enable ccan debug code for debug build X-Git-Tag: v2.0-rc0~31^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8249740f9acc5293d6d0aa11c583e193bd04135e;p=users%2Fsagi%2Fnvme-cli.git 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 --- 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