a way to disable SPLIT_DWARF macro
@@ -1881,12 +1881,15 @@ when ($ADD_GDB_INDEX_VALUE && $HOST_OS_LINUX == "yes" && $TARGET_PLATFORM == "LI
PEERDIR+=contrib/libs/platform/tools/misc/binutils
}
+SPLIT_DWARF_VALUE=no
+NO_SPLIT_DWARF=no
+
macro SPLIT_DWARF() {
SET(SPLIT_DWARF_VALUE yes)
}
SPLIT_DWARF_OUTPUT=${output;tobindir;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX.debug:REALPRJNAME}
-when ($SPLIT_DWARF_VALUE == "yes" && $NO_DEBUGINFO != "yes" && $HOST_OS_LINUX == "yes" && $TARGET_PLATFORM == "LINUX") {
+when ($SPLIT_DWARF_VALUE == "yes" && $NO_SPLIT_DWARF != "yes" && $NO_DEBUGINFO != "yes" && $HOST_OS_LINUX == "yes" && $TARGET_PLATFORM == "LINUX") {
DWARF_COMMAND+= \
$OBJCOPY_TOOL --only-keep-debug $TARGET $SPLIT_DWARF_OUTPUT && \
$STRIP_TOOL --remove-section .gnu_debuglink $TARGET && \
