1add_compiler_rt_component(safestack) 2 3set(SAFESTACK_SOURCES 4 safestack.cpp 5 ) 6 7include_directories(..) 8 9set(SAFESTACK_CFLAGS ${SANITIZER_COMMON_CFLAGS}) 10 11foreach(arch ${SAFESTACK_SUPPORTED_ARCH}) 12 add_compiler_rt_runtime(clang_rt.safestack 13 STATIC 14 ARCHS ${arch} 15 SOURCES ${SAFESTACK_SOURCES} 16 $<TARGET_OBJECTS:RTInterception.${arch}> 17 CFLAGS ${SAFESTACK_CFLAGS} 18 PARENT_TARGET safestack) 19endforeach() 20