Index: compiler-rt/cmake/Modules/AddCompilerRT.cmake =================================================================== --- compiler-rt/cmake/Modules/AddCompilerRT.cmake +++ compiler-rt/cmake/Modules/AddCompilerRT.cmake @@ -485,6 +485,10 @@ set_target_properties(${target_name} PROPERTIES FOLDER "Compiler-RT Misc") endmacro() +function(add_compiler_rt_header file_name component) + add_compiler_rt_resource_file(${file_name} ${file_name} ${component}) +endfunction() + macro(add_compiler_rt_script name) set(dst ${COMPILER_RT_EXEC_OUTPUT_DIR}/${name}) set(src ${CMAKE_CURRENT_SOURCE_DIR}/${name}) Index: compiler-rt/lib/profile/CMakeLists.txt =================================================================== --- compiler-rt/lib/profile/CMakeLists.txt +++ compiler-rt/lib/profile/CMakeLists.txt @@ -124,3 +124,7 @@ ADDITIONAL_HEADERS ${PROFILE_HEADERS} PARENT_TARGET profile) endif() + +add_compiler_rt_header(InstrProfiling.h profile) +add_compiler_rt_header(InstrProfilingInternal.h profile) +add_compiler_rt_header(InstrProfData.inc profile)