Mercurial > people > andrew > aarch32
changeset 713:cb51fb4789ac jdk8-b91
8015087: Provide debugging information for programs
Summary: Enable debugging info on programs in OpenJDK builds
Reviewed-by: erikj
author | andrew |
---|---|
date | Wed, 22 May 2013 13:49:12 +0100 |
parents | e83abb0a04ab |
children | f089df41bff5 e247ee3924d5 |
files | common/makefiles/NativeCompilation.gmk |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/common/makefiles/NativeCompilation.gmk Tue May 21 12:51:10 2013 -0700 +++ b/common/makefiles/NativeCompilation.gmk Wed May 22 13:49:12 2013 +0100 @@ -321,11 +321,17 @@ ifneq (,$$($1_DEBUG_SYMBOLS)) ifeq ($(ENABLE_DEBUG_SYMBOLS), true) - # Programs don't get the debug symbols added in the old build. It's not clear if - # this is intentional. - ifeq ($$($1_PROGRAM),) + ifdef OPENJDK + # Always add debug symbols $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS) $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS) + else + # Programs don't get the debug symbols added in the old build. It's not clear if + # this is intentional. + ifeq ($$($1_PROGRAM),) + $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS) + $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS) + endif endif endif endif