Add dbgsyms=1 option to override OPTION_DEBUG_SYMS to enable, OPTION_STRIP to disable.

This commit is contained in:
Ruben Ayrapetyan
2014-08-19 13:15:52 +04:00
parent a2fe594d0f
commit d5f50ebd04
2 changed files with 15 additions and 2 deletions
+1
View File
@@ -71,6 +71,7 @@ export echo
export todo
export fixme
export color
export dbgsyms
build: clean $(JERRY_TARGETS)
+14 -2
View File
@@ -57,6 +57,13 @@ else
OPTION_MCU = disable
endif
# Override debug symbols settings
ifeq ($(dbgsyms),1)
OPTION_OVERRIDE_ENABLE_DBGSYMS := enable
else
OPTION_OVERRIDE_ENABLE_DBGSYMS := disable
endif
# DWARF version
ifeq ($(dwarf4),1)
OPTION_DWARF4 := enable
@@ -98,8 +105,13 @@ endif
# JERRY_NDEBUG, debug symbols
ifeq ($(TARGET_MODE),release)
OPTION_NDEBUG = enable
OPTION_DEBUG_SYMS = disable
OPTION_STRIP = enable
ifeq ($(OPTION_OVERRIDE_ENABLE_DBGSYMS),enable)
OPTION_DEBUG_SYMS = enable
OPTION_STRIP = disable
else
OPTION_DEBUG_SYMS = disable
OPTION_STRIP = enable
endif
else
OPTION_NDEBUG = disable
OPTION_DEBUG_SYMS = enable