Index: clang/cmake/caches/Fuchsia-stage2.cmake =================================================================== --- clang/cmake/caches/Fuchsia-stage2.cmake +++ clang/cmake/caches/Fuchsia-stage2.cmake @@ -193,6 +193,7 @@ CACHE STRING "") set(LLVM_DISTRIBUTION_COMPONENTS + llvm-instr-prof-data-headers clang lld LTO Index: llvm/include/llvm/CMakeLists.txt =================================================================== --- llvm/include/llvm/CMakeLists.txt +++ llvm/include/llvm/CMakeLists.txt @@ -1,5 +1,6 @@ add_subdirectory(IR) add_subdirectory(Support) +add_subdirectory(ProfileData) # If we're doing an out-of-tree build, copy a module map for generated # header files into the build area. Index: llvm/include/llvm/ProfileData/CMakeLists.txt =================================================================== --- /dev/null +++ llvm/include/llvm/ProfileData/CMakeLists.txt @@ -0,0 +1,12 @@ +add_custom_target(llvm-instr-prof-data-headers) + +install(FILES InstrProfData.inc + DESTINATION include/llvm/ProfileData + COMPONENT llvm-instr-prof-data-headers) + +add_custom_target(install-llvm-instr-prof-data-headers + DEPENDS llvm-instr-prof-data-headers + COMMAND "${CMAKE_COMMAND}" + -DCMAKE_INSTALL_COMPONENT=llvm-instr-prof-data-headers + -P "${CMAKE_BINARY_DIR}/cmake_install.cmake") +add_custom_target(install-llvm-instr-prof-data-headers-stripped DEPENDS install-llvm-instr-prof-data-headers)