1add_custom_target(scudo) 2set_target_properties(scudo PROPERTIES FOLDER "Compiler-RT Misc") 3 4include_directories(..) 5 6set(SCUDO_CFLAGS ${SANITIZER_COMMON_CFLAGS}) 7append_rtti_flag(OFF SCUDO_CFLAGS) 8list(APPEND SCUDO_CFLAGS -msse4.2 -mcx16) 9 10set(SCUDO_SOURCES 11 scudo_allocator.cpp 12 scudo_flags.cpp 13 scudo_interceptors.cpp 14 scudo_new_delete.cpp 15 scudo_termination.cpp 16 scudo_utils.cpp) 17 18if(COMPILER_RT_HAS_SCUDO) 19 foreach(arch ${SCUDO_SUPPORTED_ARCH}) 20 add_compiler_rt_runtime(clang_rt.scudo 21 STATIC 22 ARCHS ${arch} 23 SOURCES ${SCUDO_SOURCES} 24 $<TARGET_OBJECTS:RTInterception.${arch}> 25 $<TARGET_OBJECTS:RTSanitizerCommonNoTermination.${arch}> 26 $<TARGET_OBJECTS:RTSanitizerCommonLibc.${arch}> 27 CFLAGS ${SCUDO_CFLAGS} 28 PARENT_TARGET scudo) 29 endforeach() 30endif() 31 32add_dependencies(compiler-rt scudo) 33 34