mirror of
https://github.com/seL4/seL4.git
synced 2026-03-27 10:29:57 +00:00
Fix compilation with CLANG > 11 (#909)
* Fix compilation with CLANG > 11 LLVM 12 makes -moutline-atomics on by default; turn it off. Signed-off-by: Peter Chubb <peter.chubb@unsw.edu.au>
This commit is contained in:
@@ -279,8 +279,13 @@ elseif(KernelArchARM)
|
||||
if(KernelSel4ArchAarch64)
|
||||
KernelCommonFlags(-mgeneral-regs-only)
|
||||
if(
|
||||
(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
AND (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "10.0.0")
|
||||
((CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
AND (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "10.0.0")
|
||||
)
|
||||
OR
|
||||
((CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
AND (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "12.0.0")
|
||||
)
|
||||
)
|
||||
add_compile_options(-mno-outline-atomics)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user