Skip to content

Commit

Permalink
add support for 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 b78e966 commit 745fe80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ if(NOT Sel4benchAllowSettingsOverride)
# This option is controlled by ApplyCommonReleaseVerificationSettings
mark_as_advanced(CMAKE_BUILD_TYPE)
if(RELEASE)
if(NOT KernelArchRiscV)
# Know issues with '-fwhole-program':
# - clang does not support it at all.
# - RISC-V kernel build fails due to missing compiler helper function.
if((NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") AND (NOT KernelArchRiscV))
set(KernelFWholeProgram ON CACHE BOOL "" FORCE)
endif()
endif()
Expand Down

0 comments on commit 745fe80

Please sign in to comment.