Skip to content

Commit

Permalink
cmake: skip build time priority checking with armclang
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fabiobaltieri committed Sep 18, 2023
1 parent 8be0bf1 commit 39c1961
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions Kconfig.zephyr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39c1961

Please sign in to comment.