Przeglądaj źródła

tcmode: handle GCC_VERSION=UNKNOWN for debug_prefix_map

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Christopher Larson 4 lat temu
rodzic
commit
6e6a1a60d5
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      conf/distro/include/tcmode-external.inc

+ 1 - 1
conf/distro/include/tcmode-external.inc

@@ -113,6 +113,6 @@ GCC_VERSION[vardepvalue] = "${GCC_VERSION}"
 
 # macro-prefix-map was introduced in gcc 8
 REMOVE_MACRO_PREFIX_MAP = "-fmacro-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
-DEBUG_PREFIX_MAP_remove_class-target = "${@'${REMOVE_MACRO_PREFIX_MAP}' if '${GCC_VERSION}' and [int(v) for v in '${GCC_VERSION}'.split('.')] < [8,0] else ''}"
+DEBUG_PREFIX_MAP_remove_class-target = "${@'${REMOVE_MACRO_PREFIX_MAP}' if '${GCC_VERSION}' not in ['', 'UNKNOWN'] and [int(v) for v in '${GCC_VERSION}'.split('.')] < [8,0] else ''}"
 
 BUILDCFG_VARS += "EXTERNAL_TOOLCHAIN EXTERNAL_TARGET_SYS GCC_VERSION"