Skip to content

Conversation

@chelcassanova
Copy link
Contributor

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.

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.
@llvmbot
Copy link
Member

llvmbot commented Jul 28, 2025

@llvm/pr-subscribers-lldb

Author: Chelsea Cassanova (chelcassanova)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/150995.diff

1 Files Affected:

  • (modified) lldb/source/API/CMakeLists.txt (+2)
diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt
index 0687c8444a4cb..fdd6b3b077463 100644
--- a/lldb/source/API/CMakeLists.txt
+++ b/lldb/source/API/CMakeLists.txt
@@ -327,6 +327,7 @@ foreach(header
   endif()
 
   add_custom_target(liblldb-stage-header-${basename} DEPENDS ${staged_header})
+  add_dependencies(liblldb-stage-header-${basename} lldb-sbapi-dwarf-enums)
   add_dependencies(liblldb-header-staging liblldb-stage-header-${basename})
   add_custom_command(
     DEPENDS ${header} OUTPUT ${staged_header}
@@ -339,6 +340,7 @@ foreach(header
     set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${basename})
 
     add_custom_target(lldb-framework-fixup-header-${basename} DEPENDS ${staged_header})
+    add_dependencies(lldb-framework-fixup-header-${basename} liblldb-stage-header-${basename})
     add_dependencies(lldb-framework-fixup-all-headers lldb-framework-fixup-header-${basename})
 
     add_custom_command(TARGET lldb-framework-fixup-header-${basename} POST_BUILD

@jimingham
Copy link
Collaborator

This fixes the error that I was having with CMaking the standalone build.

@chelcassanova
Copy link
Contributor Author

Thanks for the confirmation Jim!

Copy link
Collaborator

@jimingham jimingham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, AND WORKS...

@chelcassanova chelcassanova merged commit c162846 into llvm:main Jul 29, 2025
11 checks passed
JDevlieghere pushed a commit to swiftlang/llvm-project that referenced this pull request Sep 4, 2025
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)
JDevlieghere added a commit to swiftlang/llvm-project that referenced this pull request Sep 4, 2025
[lldb][cmake] Create dependencies for LLDB header targets (llvm#150995)
JDevlieghere added a commit to swiftlang/llvm-project that referenced this pull request Sep 11, 2025
JDevlieghere pushed a commit to swiftlang/llvm-project that referenced this pull request Sep 11, 2025
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants