4 include_directories(..)
6 add_custom_target(stats)
7 set_target_properties(stats PROPERTIES FOLDER "Compiler-RT Misc")
10 set(STATS_LIB_FLAVOR SHARED)
12 set(STATS_LINK_LIBS ${SANITIZER_COMMON_LINK_LIBS})
14 add_weak_symbols("asan" WEAK_SYMBOL_LINK_FLAGS)
15 add_weak_symbols("ubsan" WEAK_SYMBOL_LINK_FLAGS)
16 add_weak_symbols("sanitizer_common" WEAK_SYMBOL_LINK_FLAGS)
18 set(STATS_LIB_FLAVOR STATIC)
20 set(WEAK_SYMBOL_LINK_FLAGS)
23 add_compiler_rt_runtime(clang_rt.stats
25 ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
26 OS ${STATS_SUPPORTED_OS}
28 ADDITIONAL_HEADERS ${STATS_HEADERS}
29 OBJECT_LIBS RTSanitizerCommon
31 RTSanitizerCommonSymbolizer
32 CFLAGS ${SANITIZER_COMMON_CFLAGS}
33 LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS} ${WEAK_SYMBOL_LINK_FLAGS}
34 LINK_LIBS ${STATS_LINK_LIBS}
37 add_compiler_rt_runtime(clang_rt.stats_client
39 ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
40 OS ${STATS_SUPPORTED_OS}
41 SOURCES stats_client.cpp
42 ADDITIONAL_HEADERS ${STATS_HEADERS}
43 CFLAGS ${SANITIZER_COMMON_CFLAGS}
44 LINK_FLAGS ${WEAK_SYMBOL_LINK_FLAGS}