Index: compiler-rt/include/CMakeLists.txt =================================================================== --- compiler-rt/include/CMakeLists.txt +++ compiler-rt/include/CMakeLists.txt @@ -28,10 +28,19 @@ ) endif(COMPILER_RT_BUILD_XRAY) +if(COMPILER_RT_BUILD_PROFILE AND COMPILER_RT_HAS_PROFILE) + set(PROFILE_HEADERS + ../lib/profile/InstrProfiling.h + ../lib/profile/InstrProfilingInternal.h + ../lib/profile/InstrProfData.inc + ) +endif() + set(COMPILER_RT_HEADERS ${SANITIZER_HEADERS} ${FUZZER_HEADERS} - ${XRAY_HEADERS}) + ${XRAY_HEADERS} + ${PROFILE_HEADERS}) set(output_dir ${COMPILER_RT_OUTPUT_DIR}/include) @@ -66,6 +75,11 @@ COMPONENT compiler-rt-headers PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ DESTINATION ${COMPILER_RT_INSTALL_PATH}/include/xray) +# Install profile headers. +install(FILES ${PROFILE_HEADERS} + COMPONENT compiler-rt-headers + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ + DESTINATION ${COMPILER_RT_INSTALL_PATH}/include/profile) if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDEs. add_custom_target(install-compiler-rt-headers Index: lldb/test/CMakeLists.txt =================================================================== --- lldb/test/CMakeLists.txt +++ lldb/test/CMakeLists.txt @@ -103,7 +103,7 @@ COMMENT "Copying the system debugserver to LLDB's binaries directory for testing.") # The custom target for the system debugserver has no install target, so we # need to remove it from the LLVM_DISTRIBUTION_COMPONENTS list. - list(REMOVE_ITEM LLVM_DISTRIBUTION_COMPONENTS debugserver) + # list(REMOVE_ITEM LLVM_DISTRIBUTION_COMPONENTS debugserver) set(LLVM_DISTRIBUTION_COMPONENTS ${LLVM_DISTRIBUTION_COMPONENTS} PARENT_SCOPE) message(STATUS "LLDB tests use out-of-tree debugserver: ${system_debugserver_path}") list(APPEND LLDB_TEST_COMMON_ARGS --out-of-tree-debugserver)