From 39c1961f030dba4e27872ca40d856f2b3a289eb9 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Mon, 18 Sep 2023 11:35:35 +0000 Subject: [PATCH] cmake: skip build time priority checking with armclang The script does not play well with armclang binariest at the moment. Disable the automatic invocation when running with armclang, at least until this is investigated and fixed. Signed-off-by: Fabio Baltieri --- CMakeLists.txt | 3 ++- Kconfig.zephyr | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d0b25d16c8c77e4..8b2a188297240b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1804,7 +1804,8 @@ if(CONFIG_BUILD_OUTPUT_INFO_HEADER) ) endif() -if(CONFIG_CHECK_INIT_PRIORITIES) +if(CONFIG_CHECK_INIT_PRIORITIES AND + NOT CMAKE_C_COMPILER_ID STREQUAL "ARMClang") if(CONFIG_CHECK_INIT_PRIORITIES_FAIL_ON_WARNING) set(fail_on_warning "--fail-on-warning") endif() diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 3523bb506177f79..462428d03904462 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -757,6 +757,9 @@ config CHECK_INIT_PRIORITIES priority), see CHECK_INIT_PRIORITIES_FAIL_ON_WARNING to fail on warnings (dependent devices, same priority) as well. + NOTE: this check is does not support armclang binaries and is + currently silently skipped for those. + config CHECK_INIT_PRIORITIES_FAIL_ON_WARNING bool "Fail the build on priority check warnings" depends on CHECK_INIT_PRIORITIES