[Lldb-commits] [lldb] [lldb][cmake] Create dependencies for LLDB header targets (PR #150995)
Chelsea Cassanova via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 28 09:56:22 PDT 2025
https://github.com/chelcassanova created https://github.com/llvm/llvm-project/pull/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.
>From 7360a27c457f7ba78d909c45e2901507029a14a1 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova <chelsea_cassanova at apple.com>
Date: Mon, 28 Jul 2025 09:52:26 -0700
Subject: [PATCH] [lldb][cmake] Create dependencies for LLDB header targets
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.
---
lldb/source/API/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
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
More information about the lldb-commits
mailing list