[vte] build: Add debug flags when debug is enabled
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] build: Add debug flags when debug is enabled
- Date: Sun, 28 Apr 2019 12:39:50 +0000 (UTC)
commit fcff57272ea62c2dbfcfc4594bdd85eff7a0c528
Author: Christian Persch <chpe src gnome org>
Date: Sun Apr 28 14:38:47 2019 +0200
build: Add debug flags when debug is enabled
meson.build | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/meson.build b/meson.build
index 12a9acb5..904de93f 100644
--- a/meson.build
+++ b/meson.build
@@ -273,6 +273,12 @@ compiler_flags_common = [
'-fstack-protector-strong',
]
+if enable_debug
+ compiler_flags_common += [
+ '-ggdb3',
+ ]
+endif
+
# These are currently needed but the code should be fixed instead
compiler_flags_common_undesirable = [
'-fno-strict-aliasing'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]