File tree Expand file tree Collapse file tree 5 files changed +11
-2
lines changed
packages/Python/lldbsuite/test Expand file tree Collapse file tree 5 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ set(LLDB_INCLUDE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/include")
77
88set (LLDB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
99set (LLDB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} )
10+ set (LLDB_OBJ_DIR ${CMAKE_CURRENT_BINARY_DIR} )
1011
1112if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR )
1213 message (FATAL_ERROR
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ endif()
7171# At configuration time, collect headers for the framework bundle and copy them
7272# into a staging directory. Later we can copy over the entire folder.
7373file (GLOB public_headers ${LLDB_SOURCE_DIR} /include /lldb/API/*.h)
74+ set (generated_public_headers ${LLDB_OBJ_DIR} /include /lldb/API/SBLanguages.h)
7475file (GLOB root_public_headers ${LLDB_SOURCE_DIR} /include /lldb/lldb-*.h)
7576file (GLOB root_private_headers ${LLDB_SOURCE_DIR} /include /lldb/lldb-private *.h)
7677list (REMOVE_ITEM root_public_headers ${root_private_headers} )
@@ -80,6 +81,7 @@ find_program(unifdef_EXECUTABLE unifdef)
8081set (lldb_header_staging ${CMAKE_CURRENT_BINARY_DIR} /FrameworkHeaders)
8182foreach (header
8283 ${public_headers}
84+ ${generated_public_headers}
8385 ${root_public_headers} )
8486
8587 get_filename_component (basename ${header} NAME )
Original file line number Diff line number Diff line change 4040#include " lldb/API/SBInstruction.h"
4141#include " lldb/API/SBInstructionList.h"
4242#include " lldb/API/SBLanguageRuntime.h"
43+ #include " lldb/API/SBLanguages.h"
4344#include " lldb/API/SBLaunchInfo.h"
4445#include " lldb/API/SBLineEntry.h"
4546#include " lldb/API/SBListener.h"
Original file line number Diff line number Diff line change @@ -148,6 +148,9 @@ def getLibCxxArgs(self):
148148 return libcpp_args
149149 return []
150150
151+ def getLLDBObjRoot (self ):
152+ return ["LLDB_OBJ_ROOT={}" .format (configuration .lldb_obj_root )]
153+
151154 def _getDebugInfoArgs (self , debug_info ):
152155 if debug_info is None :
153156 return []
@@ -185,6 +188,7 @@ def getBuildCommand(
185188 self .getSDKRootSpec (),
186189 self .getModuleCacheSpec (),
187190 self .getLibCxxArgs (),
191+ self .getLLDBObjRoot (),
188192 self .getCmdLine (dictionary ),
189193 ]
190194 command = list (itertools .chain (* command_parts ))
Original file line number Diff line number Diff line change @@ -238,10 +238,11 @@ ifeq "$(OS)" "Darwin"
238238endif
239239
240240ifeq "$(OS)" "Darwin"
241- CFLAGS += $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES) -I$(LLDB_BASE_DIR)include
241+ CFLAGS += $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES)
242242else
243- CFLAGS += $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) -I$(LLDB_BASE_DIR)include
243+ CFLAGS += $(ARCHFLAG)$(ARCH)
244244endif
245+ CFLAGS += -I$(LLDB_BASE_DIR)include -I$(LLDB_OBJ_ROOT)/include
245246
246247CFLAGS += -I$(SRCDIR) -I$(THIS_FILE_DIR)
247248
You can’t perform that action at this time.
0 commit comments