2016-08-27 04:52:22 +08:00
|
|
|
add_compiler_rt_component(safestack)
|
2015-06-16 05:08:47 +08:00
|
|
|
|
2019-08-01 21:56:52 +08:00
|
|
|
set(SAFESTACK_SOURCES
|
|
|
|
safestack.cpp
|
|
|
|
)
|
2015-06-16 05:08:47 +08:00
|
|
|
|
|
|
|
include_directories(..)
|
|
|
|
|
|
|
|
set(SAFESTACK_CFLAGS ${SANITIZER_COMMON_CFLAGS})
|
|
|
|
|
2018-08-15 03:46:16 +08:00
|
|
|
foreach(arch ${SAFESTACK_SUPPORTED_ARCH})
|
2015-08-26 03:53:09 +08:00
|
|
|
add_compiler_rt_runtime(clang_rt.safestack
|
|
|
|
STATIC
|
2018-08-15 03:46:16 +08:00
|
|
|
ARCHS ${arch}
|
2015-08-26 03:53:09 +08:00
|
|
|
SOURCES ${SAFESTACK_SOURCES}
|
2018-08-15 03:46:16 +08:00
|
|
|
$<TARGET_OBJECTS:RTInterception.${arch}>
|
2015-08-26 03:53:09 +08:00
|
|
|
CFLAGS ${SAFESTACK_CFLAGS}
|
|
|
|
PARENT_TARGET safestack)
|
2018-08-15 03:46:16 +08:00
|
|
|
endforeach()
|