Skip to content

Commit

Permalink
support compiling with clang
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Apr 9, 2024
1 parent 56073f8 commit 6bf3755
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@ if(NOT Sel4benchAllowSettingsOverride)
# This option is controlled by ApplyCommonReleaseVerificationSettings
mark_as_advanced(CMAKE_BUILD_TYPE)
if(RELEASE)
if(NOT KernelArchRiscV)
# Know issues with KernelFWholeProgram ('-fwhole-program'):
# - the RISC-V kernel build with gcc currently fails due to a issing
# compiler runtime helper function.
# - this option is not supposed by 'clang' at all. Note that we can't
# check CMAKE_C_COMPILER_ID here, because it is empty, as this file
# might get processed before CMake does any compiler evaluation. Thus,
# the only option is checking if TRIPLE is set or not.
if((NOT KernelArchRiscV) AND (TRIPLE STREQUAL ""))
set(KernelFWholeProgram ON CACHE BOOL "" FORCE)
endif()
endif()
Expand Down

0 comments on commit 6bf3755

Please sign in to comment.