build: Adds support for Clangs's toolchain compiler-rt

This commit is contained in:
Alexey Gerenkov
2022-11-23 15:00:11 +03:00
parent 8846674e54
commit e9345bcced
18 changed files with 74 additions and 3 deletions
+5
View File
@@ -224,6 +224,11 @@ endif()
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
list(APPEND compile_options "-fno-use-cxa-atexit")
if(CONFIG_COMPILER_RT_LIB_GCCLIB)
list(APPEND link_options "-rtlib=libgcc")
elseif(CONFIG_COMPILER_RT_LIB_CLANGRT)
list(APPEND link_options "-rtlib=compiler-rt")
endif()
endif()
# For the transition period from 32-bit time_t to 64-bit time_t,