brintos

brintos / llvm-project-archived public Read only

0
0
Text · 914 B · 446ebc9 Raw
35 lines · plain
1add_compiler_rt_component(ctx_profile)2 3set(CTX_PROFILE_SOURCES4  CtxInstrProfiling.cpp5  RootAutoDetector.cpp6  )7 8set(CTX_PROFILE_HEADERS9  CtxInstrContextNode.h10  CtxInstrProfiling.h11  RootAutoDetector.h12  )13 14include_directories(..)15include_directories(../../include)16 17# We don't use the C++ Standard Library here, so avoid including it by mistake.18append_list_if(COMPILER_RT_HAS_NOSTDINCXX_FLAG -nostdinc++ EXTRA_FLAGS)19 20# __sanitizer_siginfo21append_list_if(COMPILER_RT_HAS_WGNU_ANONYMOUS_STRUCT_FLAG -Wno-gnu-anonymous-struct EXTRA_FLAGS)22 23if(COMPILER_RT_INCLUDE_TESTS)24  add_subdirectory(tests)25endif()26 27add_compiler_rt_runtime(clang_rt.ctx_profile28  STATIC29  ARCHS ${CTX_PROFILE_SUPPORTED_ARCH}30  OBJECT_LIBS RTSanitizerCommon RTSanitizerCommonLibc RTSanitizerCommonSymbolizer31  CFLAGS ${EXTRA_FLAGS}32  SOURCES ${CTX_PROFILE_SOURCES}33  ADDITIONAL_HEADERS ${CTX_PROFILE_HEADERS}34  PARENT_TARGET ctx_profile)35