Skip to content

Commit c162846

Browse files
[lldb][cmake] Create dependencies for LLDB header targets (#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.
1 parent ba2e49c commit c162846

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/API/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ foreach(header
327327
endif()
328328

329329
add_custom_target(liblldb-stage-header-${basename} DEPENDS ${staged_header})
330+
add_dependencies(liblldb-stage-header-${basename} lldb-sbapi-dwarf-enums)
330331
add_dependencies(liblldb-header-staging liblldb-stage-header-${basename})
331332
add_custom_command(
332333
DEPENDS ${header} OUTPUT ${staged_header}
@@ -339,6 +340,7 @@ foreach(header
339340
set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${basename})
340341

341342
add_custom_target(lldb-framework-fixup-header-${basename} DEPENDS ${staged_header})
343+
add_dependencies(lldb-framework-fixup-header-${basename} liblldb-stage-header-${basename})
342344
add_dependencies(lldb-framework-fixup-all-headers lldb-framework-fixup-header-${basename})
343345

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

0 commit comments

Comments
 (0)