commit | 28b4bab01c3e76d7e9eeafd8522f85dc32edc0c6 | [log] [tgz] |
---|---|---|
author | Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no> | Mon Jul 08 12:24:50 2024 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Aug 07 19:03:40 2024 -0400 |
tree | 3cc2e5f3f2898b1719556112c5dfe948d7256709 | |
parent | c8e1fdf29615a8a8f34c7a95ab8feb1097107e6c [diff] |
kernel: fatal: Fix NO_OPTIMIZATIONS build When logging is on and optimization and multithreading is off then build fails to link because unoptimized compiler/linker seems to not look beyond the function and it fails trying to link k_thread_name_get. Reworking the code to make it known to the compiler without optimization that k_thread_name_get is not needed and not logging current thread name in that case. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>