[json-glib/wip/ordered-iter] build: Bring back JSON_ENABLE_DEBUG



commit 384999c20a56dcc159c3a534e9aa5e694b5c036b
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Aug 24 15:41:08 2020 +0100

    build: Bring back JSON_ENABLE_DEBUG
    
    The Meson port silently dropped the ability to enable debugging messages
    at run time. Let's bring it back.

 meson.build | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/meson.build b/meson.build
index 5a7cc94..31ac1b3 100644
--- a/meson.build
+++ b/meson.build
@@ -130,6 +130,10 @@ endif
 
 common_cflags = cc.get_supported_arguments(test_cflags)
 
+if get_option('debug')
+  cdata.set('JSON_ENABLE_DEBUG', true)
+endif
+
 common_ldflags = []
 if host_system == 'linux'
   common_ldflags += cc.get_supported_link_arguments([


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]