Skip to content

Commit 554130c

Browse files
chelcassanovaJDevlieghere
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 89d0c85 commit 554130c

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
@@ -361,6 +361,7 @@ foreach(header
361361
endif()
362362

363363
add_custom_target(liblldb-stage-header-${basename} DEPENDS ${staged_header})
364+
add_dependencies(liblldb-stage-header-${basename} lldb-sbapi-dwarf-enums)
364365
add_dependencies(liblldb-header-staging liblldb-stage-header-${basename})
365366
add_custom_command(
366367
DEPENDS ${header} OUTPUT ${staged_header}
@@ -373,6 +374,7 @@ foreach(header
373374
set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${basename})
374375

375376
add_custom_target(lldb-framework-fixup-header-${basename} DEPENDS ${staged_header})
377+
add_dependencies(lldb-framework-fixup-header-${basename} liblldb-stage-header-${basename})
376378
add_dependencies(lldb-framework-fixup-all-headers lldb-framework-fixup-header-${basename})
377379

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

0 commit comments

Comments
 (0)