Skip to content

Commit e43ebfb

Browse files
chelcassanovajimingham
authored andcommitted
[lldb][cmake] Create dependencies for LLDB header targets (llvm#150995)
The LLDB standalone build using Xcode currently fails due to the headers being attached to multiple targets, but none of these targets depending on each other. This commit resolves this by creating those dependencies. (cherry picked from commit c162846)
1 parent c2a6294 commit e43ebfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/API/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ foreach(header
360360
set(copy_command ${CMAKE_COMMAND} -E copy ${header} ${staged_header})
361361
endif()
362362

363+
add_custom_target(liblldb-stage-header-${basename} DEPENDS ${staged_header})
364+
add_dependencies(liblldb-stage-header-${basename} lldb-sbapi-dwarf-enums)
365+
add_dependencies(liblldb-header-staging liblldb-stage-header-${basename})
363366
add_custom_command(
364367
DEPENDS ${header} OUTPUT ${staged_header}
365368
COMMAND ${copy_command}
@@ -371,6 +374,7 @@ foreach(header
371374
set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${basename})
372375

373376
add_custom_target(lldb-framework-fixup-header-${basename} DEPENDS ${staged_header})
377+
add_dependencies(lldb-framework-fixup-header-${basename} liblldb-stage-header-${basename})
374378
add_dependencies(lldb-framework-fixup-all-headers lldb-framework-fixup-header-${basename})
375379

376380
add_custom_command(TARGET lldb-framework-fixup-header-${basename} POST_BUILD

0 commit comments

Comments
 (0)