CMakeLists.txt revision e97262dc8ddfc6aa52871692569059b17c01d193
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}) 10else() 11 foreach(arch ${PROFILE_SUPPORTED_ARCH}) 12 add_compiler_rt_static_runtime(clang_rt.profile-${arch} 13 ${arch} 14 SOURCES ${PROFILE_SOURCES}) 15 endforeach() 16endif() 17