summaryrefslogtreecommitdiffstats
path: root/tools/perf/config/Makefile
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-05-26 17:23:24 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-05-27 17:21:45 +0200
commite8b7ea4356fdd3c4de5478f3418eb84f8dce2b61 (patch)
treed2bf5a7559f566ed71f93ae81671360eac42cd3d /tools/perf/config/Makefile
parentperf tools: Assign default value for some pointers (diff)
downloadlinux-e8b7ea4356fdd3c4de5478f3418eb84f8dce2b61.tar.xz
linux-e8b7ea4356fdd3c4de5478f3418eb84f8dce2b61.zip
perf tools: Improve setting of gcc debug option
Correct debugging experience is given by passing -Og to compiler. Do it in a way that supports older compilers Signed-off-by: Martin Liska <mliska@suse.cz> Acked-by: Ingo Molnar <mingo@kernel.org> Link: http://lkml.kernel.org/r/5564393C.1090104@suse.cz Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/config/Makefile')
-rw-r--r--tools/perf/config/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index e3b3724e73ff..317001c94660 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -130,6 +130,8 @@ endif
ifeq ($(DEBUG),0)
CFLAGS += -O6
+else
+ CFLAGS += $(call cc-option,-Og,-O0)
endif
ifdef PARSER_DEBUG