]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: Enable ccan debug code for debug build
authorDaniel Wagner <dwagner@suse.de>
Thu, 9 Dec 2021 12:41:02 +0000 (13:41 +0100)
committerDaniel Wagner <dwagner@suse.de>
Thu, 9 Dec 2021 12:55:02 +0000 (13:55 +0100)
The ccan library has support debugging, let's enable this when
building the debug version of the library.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
ccan/meson.build

index 223bc71bb5a39960e88804fe9cb9e13c9236daea..7573265b6af7db059594da30904997dca0017b21 100644 (file)
@@ -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