logging: v2: force LOG2_ALWAYS_RUNTIME if XCC

XCC is based on GCC 4.2.0 which doesn't support auto type.
So force CONFIG_LOG2_ALWAYS_RUNTIME to be enabled if XCC is
being used.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2022-02-24 15:23:30 -08:00 committed by Carles Cufí
commit e54b4faabc

View file

@ -38,6 +38,7 @@ config LOG2_ALWAYS_RUNTIME
bool
default y if NO_OPTIMIZATIONS
default y if LOG_MODE_IMMEDIATE
default y if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "xcc"
help
If enabled, runtime method is always used for message creation. Static
creation relies on compiler being able to optimize and remove code