llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: Chelsea Cassanova (chelcassanova) <details> <summary>Changes</summary> A build step needs to copy headers from the framework staging area to the framework itself. This commit modifies the LLDB framework CMake module to do this. --- Full diff: https://github.com/llvm/llvm-project/pull/146425.diff 1 Files Affected: - (modified) lldb/cmake/modules/LLDBFramework.cmake (+5-1) ``````````diff diff --git a/lldb/cmake/modules/LLDBFramework.cmake b/lldb/cmake/modules/LLDBFramework.cmake index 70010ffbf738c..c4f5dfb26ae41 100644 --- a/lldb/cmake/modules/LLDBFramework.cmake +++ b/lldb/cmake/modules/LLDBFramework.cmake @@ -109,10 +109,14 @@ add_dependencies(liblldb liblldb-resource-headers) # Then write them to the output directory. # Also, run unifdef to remove any specified guards from the header files. file(GLOB lldb_framework_header_staging_list ${lldb_framework_header_staging}/*) +add_custom_command(TARGET liblldb + COMMAND ${CMAKE_COMMAND} -E copy_directory ${lldb_framework_header_staging} $<TARGET_FILE_DIR:liblldb>/Headers +) foreach(header ${lldb_framework_header_staging_list}) set(input_header ${header}) - set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${input_header}) + get_filename_component(output_header_basename ${input_header} NAME) + set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${output_header_basename}) add_custom_command(TARGET liblldb POST_BUILD COMMAND ${LLDB_SOURCE_DIR}/scripts/framework-header-fix.py -f lldb_main -i ${input_header} -o ${output_header} -p ${unifdef_EXECUTABLE} USWIG `````````` </details> https://github.com/llvm/llvm-project/pull/146425 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits