Skip to content

Commit 8e90fed

Browse files
chelcassanovaJDevlieghere
authored andcommitted
[lldb][headers] Fix header staging target for RPC (llvm#150355)
This commit fixes the target that stages headers in the build dir's include directory so that the headers are staged correctly so that the target for liblldbrpc-headers can depend on it properly (cherry picked from commit dfe9fcc)
1 parent 8209113 commit 8e90fed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/source/API/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ list(REMOVE_ITEM root_public_headers ${root_private_headers})
336336

337337
find_program(unifdef_EXECUTABLE unifdef)
338338

339-
add_custom_target(liblldb-header-staging DEPENDS ${lldb_staged_headers} ${lldb_header_staging_dir}/lldb-defines.h)
339+
add_custom_target(liblldb-header-staging)
340340

341341
if (LLDB_BUILD_FRAMEWORK)
342342
add_custom_target(lldb-framework-fixup-all-headers)

lldb/tools/lldb-rpc/LLDBRPCHeaders.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function(FixIncludePaths in subfolder out)
7979

8080
add_custom_command(OUTPUT ${parked_header}
8181
COMMAND ${LLDB_SOURCE_DIR}/scripts/framework-header-fix.py
82-
-f lldb_rpc -i ${in} -o ${parked_header} -p ${unifdef_EXECUTABLE} USWIG
82+
-f lldb_rpc -i ${in} -o ${parked_header} -p ${unifdef_EXECUTABLE} --unifdef_guards USWIG
8383
DEPENDS ${in}
8484
COMMENT "Fixing includes in ${in}"
8585
)

0 commit comments

Comments
 (0)