CMakeLists.txt revision 4df99d2565a29889ca23a7cc11ed73e3c055b751
1set(PROFILE_SOURCES
2  GCDAProfiling.c)
3
4filter_available_targets(PROFILE_SUPPORTED_ARCH x86_64 i386)
5
6if(APPLE)
7  add_compiler_rt_osx_static_runtime(clang_rt.profile_osx
8    ARCH ${PROFILE_SUPPORTED_ARCH}
9    SOURCES ${PROFILE_SOURCES}
10    CFLAGS --sysroot=${COMPILER_RT_DARWIN_SDK_SYSROOT})
11else()
12  foreach(arch ${PROFILE_SUPPORTED_ARCH})
13    add_compiler_rt_static_runtime(clang_rt.profile-${arch} ${arch}
14      SOURCES ${PROFILE_SOURCES})
15  endforeach()
16endif()
17