From 745fe80263fd3677debe0c8796c45c48a49d747e Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Tue, 9 Apr 2024 19:42:02 +0200 Subject: [PATCH] add support for clang Signed-off-by: Axel Heider --- settings.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/settings.cmake b/settings.cmake index 54af1d77..b39e9295 100644 --- a/settings.cmake +++ b/settings.cmake @@ -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()