[Lldb-commits] [lldb] [lldb][framework] Copy framework files correctly (PR #146425)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 30 14:56:08 PDT 2025
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
More information about the lldb-commits
mailing list