[json-glib/wip/ordered-iter: 11/15] build: Bring back JSON_ENABLE_DEBUG
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib/wip/ordered-iter: 11/15] build: Bring back JSON_ENABLE_DEBUG
- Date: Mon, 24 Aug 2020 16:44:20 +0000 (UTC)
commit cfda3a24d0cb5fd54049705cbdfae78fa4ceff10
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]