Skip to content

Commit

Permalink
Pick up -DDEBUG flag from the GCC_PREPROCESSOR_DEFINITIONS declared i…
Browse files Browse the repository at this point in the history
…n the xcode build settings instead of adding it when DEBUGGING_SYMBOLS is set because DEBUGGING_SYMBOLS is also set in Release mode.

	Change on 2014/04/07 by kstanger <[email protected]>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=64490667
  • Loading branch information
tomball committed Apr 7, 2014
1 parent c36aa19 commit a0cc39c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SDK_FLAGS = -isysroot $(SDKROOT)
ifeq ($(DEBUGGING_SYMBOLS), YES)
# Enable when it's decided to distribute JRE with Java source debugging.
# J2OBJC_DEBUGFLAGS = -g
DEBUGFLAGS = -DDEBUG -g
DEBUGFLAGS = -g
endif

ifdef GCC_OPTIMIZATION_LEVEL
Expand All @@ -84,6 +84,10 @@ ifdef OPTIMIZATION_LEVEL
DEBUGFLAGS := $(DEBUGFLAGS) -O$(OPTIMIZATION_LEVEL)
endif

ifdef GCC_PREPROCESSOR_DEFINITIONS
DEBUGFLAGS += $(GCC_PREPROCESSOR_DEFINITIONS:%=-D%)
endif

TRANSLATOR_DEPS = $(DIST_DIR)/j2objc $(DIST_JAR_DIR)/j2objc.jar

JAVAC = javac
Expand Down

0 comments on commit a0cc39c

Please sign in to comment.