Add dbgsyms=1 option to override OPTION_DEBUG_SYMS to enable, OPTION_STRIP to disable.
This commit is contained in:
@@ -71,6 +71,7 @@ export echo
|
|||||||
export todo
|
export todo
|
||||||
export fixme
|
export fixme
|
||||||
export color
|
export color
|
||||||
|
export dbgsyms
|
||||||
|
|
||||||
build: clean $(JERRY_TARGETS)
|
build: clean $(JERRY_TARGETS)
|
||||||
|
|
||||||
|
|||||||
+14
-2
@@ -57,6 +57,13 @@ else
|
|||||||
OPTION_MCU = disable
|
OPTION_MCU = disable
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Override debug symbols settings
|
||||||
|
ifeq ($(dbgsyms),1)
|
||||||
|
OPTION_OVERRIDE_ENABLE_DBGSYMS := enable
|
||||||
|
else
|
||||||
|
OPTION_OVERRIDE_ENABLE_DBGSYMS := disable
|
||||||
|
endif
|
||||||
|
|
||||||
# DWARF version
|
# DWARF version
|
||||||
ifeq ($(dwarf4),1)
|
ifeq ($(dwarf4),1)
|
||||||
OPTION_DWARF4 := enable
|
OPTION_DWARF4 := enable
|
||||||
@@ -98,8 +105,13 @@ endif
|
|||||||
# JERRY_NDEBUG, debug symbols
|
# JERRY_NDEBUG, debug symbols
|
||||||
ifeq ($(TARGET_MODE),release)
|
ifeq ($(TARGET_MODE),release)
|
||||||
OPTION_NDEBUG = enable
|
OPTION_NDEBUG = enable
|
||||||
OPTION_DEBUG_SYMS = disable
|
ifeq ($(OPTION_OVERRIDE_ENABLE_DBGSYMS),enable)
|
||||||
OPTION_STRIP = enable
|
OPTION_DEBUG_SYMS = enable
|
||||||
|
OPTION_STRIP = disable
|
||||||
|
else
|
||||||
|
OPTION_DEBUG_SYMS = disable
|
||||||
|
OPTION_STRIP = enable
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
OPTION_NDEBUG = disable
|
OPTION_NDEBUG = disable
|
||||||
OPTION_DEBUG_SYMS = enable
|
OPTION_DEBUG_SYMS = enable
|
||||||
|
|||||||
Reference in New Issue
Block a user