Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / lib / safestack / CMakeLists.txt
blob316ab69ecfdbe2aba39c545ffeb2b2de96cd1b95
1 add_compiler_rt_component(safestack)
3 set(SAFESTACK_SOURCES
4   safestack.cpp
5   )
7 include_directories(..)
9 set(SAFESTACK_CFLAGS ${SANITIZER_COMMON_CFLAGS})
11 foreach(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)
19 endforeach()