Home | History | Annotate | Download | only in stats
      1 include_directories(..)
      2 
      3 add_custom_target(stats)
      4 set_target_properties(stats PROPERTIES FOLDER "Compiler-RT Misc")
      5 
      6 if(APPLE)
      7   set(STATS_LIB_FLAVOR SHARED)
      8 else()
      9   set(STATS_LIB_FLAVOR STATIC)
     10 endif()
     11 
     12 add_compiler_rt_runtime(clang_rt.stats
     13   ${STATS_LIB_FLAVOR}
     14   ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
     15   OS ${SANITIZER_COMMON_SUPPORTED_OS}
     16   SOURCES stats.cc
     17   OBJECT_LIBS RTSanitizerCommon
     18               RTSanitizerCommonLibc
     19   CFLAGS ${SANITIZER_COMMON_CFLAGS}
     20   PARENT_TARGET stats)
     21 
     22 add_compiler_rt_runtime(clang_rt.stats_client
     23   STATIC
     24   ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
     25   OS ${SANITIZER_COMMON_SUPPORTED_OS}
     26   SOURCES stats_client.cc
     27   CFLAGS ${SANITIZER_COMMON_CFLAGS}
     28   PARENT_TARGET stats)
     29