summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build12
1 files 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']