1 add_compiler_rt_component(cfi)
3 if(OS_NAME MATCHES "Linux" OR OS_NAME MATCHES "FreeBSD" OR OS_NAME MATCHES "NetBSD")
8 include_directories(..)
11 ${SANITIZER_COMMON_CFLAGS}
14 # Too many existing bugs, needs cleanup.
15 append_list_if(COMPILER_RT_HAS_WNO_FORMAT -Wno-format CFI_CFLAGS)
21 foreach(arch ${CFI_SUPPORTED_ARCH})
22 add_compiler_rt_runtime(clang_rt.cfi
25 SOURCES ${CFI_SOURCES}
26 OBJECT_LIBS RTInterception
31 add_compiler_rt_runtime(clang_rt.cfi_diag
34 SOURCES ${CFI_SOURCES}
35 OBJECT_LIBS RTInterception
38 RTSanitizerCommonCoverage
39 RTSanitizerCommonSymbolizer
41 CFLAGS ${CFI_CFLAGS} ${CFI_DIAG_CFLAGS}
46 add_compiler_rt_resource_file(cfi_ignorelist cfi_ignorelist.txt cfi)