You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/12/14 14:48:45 UTC

[lucy-commits] [2/6] git commit: refs/heads/master - Add debugging option to Charmonizer CFlags

Add debugging option to Charmonizer CFlags


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/f783f285
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/f783f285
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/f783f285

Branch: refs/heads/master
Commit: f783f28577c473bbee3021339521e5539b0b46e7
Parents: 4b91087
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat Dec 14 14:34:42 2013 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sat Dec 14 14:46:46 2013 +0100

----------------------------------------------------------------------
 charmonizer/src/Charmonizer/Core/CFlags.c | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/f783f285/charmonizer/src/Charmonizer/Core/CFlags.c
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Core/CFlags.c b/charmonizer/src/Charmonizer/Core/CFlags.c
index 5b4e15d..f526a7d 100644
--- a/charmonizer/src/Charmonizer/Core/CFlags.c
+++ b/charmonizer/src/Charmonizer/Core/CFlags.c
@@ -153,6 +153,13 @@ chaz_CFlags_enable_optimization(chaz_CFlags *flags) {
 }
 
 void
+chaz_CFlags_enable_debugging(chaz_CFlags *flags) {
+    if (flags->style == CHAZ_CFLAGS_STYLE_GNU) {
+        chaz_CFlags_append(flags, "-g");
+    }
+}
+
+void
 chaz_CFlags_disable_strict_aliasing(chaz_CFlags *flags) {
     if (flags->style == CHAZ_CFLAGS_STYLE_MSVC) {
         return;