Skip to content

Commit

Permalink
cmake: introduce GCC_COMPILER_VERSION variable
Browse files Browse the repository at this point in the history
Introduce GCC_COMPILER_VERSION to be used in Zephyr CMake when knowledge
of the current GCC Compiler version is needed and
CMAKE_C_COMPILER_VERSION has not been defined yet.

CMAKE_C_COMPILER_VERSION is not defined until project() is called.

Signed-off-by: Torsten Rasmussen <[email protected]>

Co-authored-by: Torsten Tejlmand Rasmussen <[email protected]>
  • Loading branch information
AlexFabre and tejlmand committed Feb 27, 2025
1 parent 40d0e60 commit 70001b1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmake/sca/gcc/sca.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
# Copyright (c) 2025 Alex Fabre

# Get GCC version
execute_process(
COMMAND ${CMAKE_C_COMPILER} -dumpfullversion
OUTPUT_VARIABLE GCC_COMPILER_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)

# Check GCC version
# GCC static analyzer requires GCC version >= 10.0.0
Expand Down

0 comments on commit 70001b1

Please sign in to comment.