2013-03-19 17:17:35 +08:00
|
|
|
set(PROFILE_SOURCES
|
|
|
|
GCDAProfiling.c)
|
|
|
|
|
|
|
|
filter_available_targets(PROFILE_SUPPORTED_ARCH x86_64 i386)
|
|
|
|
|
2013-03-25 22:20:11 +08:00
|
|
|
if(APPLE)
|
|
|
|
add_compiler_rt_osx_static_runtime(clang_rt.profile_osx
|
|
|
|
ARCH ${PROFILE_SUPPORTED_ARCH}
|
2013-06-25 08:37:28 +08:00
|
|
|
SOURCES ${PROFILE_SOURCES})
|
2013-03-25 22:20:11 +08:00
|
|
|
else()
|
2013-03-19 17:17:35 +08:00
|
|
|
foreach(arch ${PROFILE_SUPPORTED_ARCH})
|
2013-06-25 08:37:28 +08:00
|
|
|
add_compiler_rt_static_runtime(clang_rt.profile-${arch}
|
|
|
|
${arch}
|
2013-03-19 21:34:23 +08:00
|
|
|
SOURCES ${PROFILE_SOURCES})
|
2013-03-19 17:17:35 +08:00
|
|
|
endforeach()
|
|
|
|
endif()
|