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