23 lines · plain
1add_compiler_rt_component(safestack)2 3set(SAFESTACK_SOURCES4 safestack.cpp5 )6 7include_directories(..)8 9set(SAFESTACK_CFLAGS ${SANITIZER_COMMON_CFLAGS})10 11foreach(arch ${SAFESTACK_SUPPORTED_ARCH})12 add_compiler_rt_runtime(clang_rt.safestack13 STATIC14 ARCHS ${arch}15 SOURCES ${SAFESTACK_SOURCES}16 $<TARGET_OBJECTS:RTInterception.${arch}>17 # Intentionally does not deppend on sanitizer_common,18 # to keep runtime trivial, and acceptable for security19 # sensitive applications.20 CFLAGS ${SAFESTACK_CFLAGS}21 PARENT_TARGET safestack)22endforeach()23