Skip to content
Commit 4c3fa1b7 authored by Daniel Leung's avatar Daniel Leung Committed by Carles Cufí
Browse files

logging: v2: workaround for old toolchains when !LOG



For GCC < 4.9.0 and Clang < 3.8.0, auto type is not supported.
But the previous behavior to depend on CONFIG_LOG2_ALWAYS_RUNTIME
to be enabled doesn't work because this kconfig is not available
when CONFIG_LOG is not enabled, as LOG_*() are still being
expanded when CONFIG_LOG=n, resulting in toolchain complaining
about unknown keyword. So when CONFIG_LOG=n and old toolchains,
force it to use runtime packaging to avoid the issue.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent fb92a654
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment