[tracker/sam/debug-plain] build: Enable debug if --buildtype=plain
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/debug-plain] build: Enable debug if --buildtype=plain
- Date: Tue, 1 Dec 2020 13:49:16 +0000 (UTC)
commit 1f67d61332032b18847d31f08c6bcb5d8cdb03d0
Author: Sam Thursfield <sam afuera me uk>
Date: Tue Dec 1 14:48:11 2020 +0100
build: Enable debug if --buildtype=plain
meson.build | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index a67231f9d..aa6cf228a 100644
--- a/meson.build
+++ b/meson.build
@@ -74,9 +74,17 @@ add_project_arguments(['-D', 'TRACKER_COMPILATION'],
['-D', 'G_LOG_STRUCTURED=1'],
language: 'vala')
-debug_cflags = []
-debug = get_option('debug')
+if get_option('buildtype') == 'plain'
+ # Default case is to allow TRACKER_DEBUG which is very useful for
+ # triaging user-reported issues.
+ # Use --buildtype=release to disable debug completely.
+ debug = 1
+else
+ debug = get_option('debug')
+endif
optimization = get_option('optimization')
+
+debug_cflags = []
if debug
debug_cflags += '-DG_ENABLE_DEBUG'
if optimization in ['0', 'g']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]