================ @@ -323,12 +332,24 @@ foreach(header COMMENT "LLDB headers: stage LLDB headers in include directory") list(APPEND lldb_staged_headers ${staged_header}) + + if (LLDB_BUILD_FRAMEWORK) + set(input_header ${staged_header}) + set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${basename}) + + add_custom_target(lldb-framework-fixup-header-${basename} DEPENDS ${input_header}) + add_dependencies(lldb-framework-fixup-all-headers lldb-framework-fixup-header-${basename}) + + add_custom_command(TARGET lldb-framework-fixup-header-${basename} POST_BUILD + COMMAND "${Python3_EXECUTABLE}" ${LLDB_SOURCE_DIR}/scripts/framework-header-fix.py -f lldb_main -i ${input_header} -o ${output_header} -p ${unifdef_EXECUTABLE} USWIG ---------------- JDevlieghere wrote:
It looks like the staging part already handles the SWIG scenario, so do we still need to pass this here? The script would still need the functionality because of the RPC framework, it just wouldn't be used here for LLDB.framework. https://github.com/llvm/llvm-project/pull/148736 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits