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")
7
7
8
8
set (LLDB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
9
9
set (LLDB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} )
10
+ set (LLDB_OBJ_DIR ${CMAKE_CURRENT_BINARY_DIR} )
10
11
11
12
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR )
12
13
message (FATAL_ERROR
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ endif()
71
71
# At configuration time, collect headers for the framework bundle and copy them
72
72
# into a staging directory. Later we can copy over the entire folder.
73
73
file (GLOB public_headers ${LLDB_SOURCE_DIR} /include/lldb/API/*.h )
74
+ set (generated_public_headers ${LLDB_OBJ_DIR} /include/lldb/API/SBLanguages.h )
74
75
file (GLOB root_public_headers ${LLDB_SOURCE_DIR} /include/lldb/lldb-*.h )
75
76
file (GLOB root_private_headers ${LLDB_SOURCE_DIR} /include/lldb/lldb-private*.h )
76
77
list (REMOVE_ITEM root_public_headers ${root_private_headers} )
@@ -80,6 +81,7 @@ find_program(unifdef_EXECUTABLE unifdef)
80
81
set (lldb_header_staging ${CMAKE_CURRENT_BINARY_DIR} /FrameworkHeaders )
81
82
foreach (header
82
83
${public_headers}
84
+ ${generated_public_headers}
83
85
${root_public_headers} )
84
86
85
87
get_filename_component (basename ${header} NAME )
Original file line number Diff line number Diff line change 40
40
#include " lldb/API/SBInstruction.h"
41
41
#include " lldb/API/SBInstructionList.h"
42
42
#include " lldb/API/SBLanguageRuntime.h"
43
+ #include " lldb/API/SBLanguages.h"
43
44
#include " lldb/API/SBLaunchInfo.h"
44
45
#include " lldb/API/SBLineEntry.h"
45
46
#include " lldb/API/SBListener.h"
Original file line number Diff line number Diff line change @@ -148,6 +148,9 @@ def getLibCxxArgs(self):
148
148
return libcpp_args
149
149
return []
150
150
151
+ def getLLDBObjRoot (self ):
152
+ return ["LLDB_OBJ_ROOT={}" .format (configuration .lldb_obj_root )]
153
+
151
154
def _getDebugInfoArgs (self , debug_info ):
152
155
if debug_info is None :
153
156
return []
@@ -185,6 +188,7 @@ def getBuildCommand(
185
188
self .getSDKRootSpec (),
186
189
self .getModuleCacheSpec (),
187
190
self .getLibCxxArgs (),
191
+ self .getLLDBObjRoot (),
188
192
self .getCmdLine (dictionary ),
189
193
]
190
194
command = list (itertools .chain (* command_parts ))
Original file line number Diff line number Diff line change @@ -238,10 +238,11 @@ ifeq "$(OS)" "Darwin"
238
238
endif
239
239
240
240
ifeq "$(OS)" "Darwin"
241
- CFLAGS += $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES) -I$(LLDB_BASE_DIR)include
241
+ CFLAGS += $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES)
242
242
else
243
- CFLAGS += $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) -I$(LLDB_BASE_DIR)include
243
+ CFLAGS += $(ARCHFLAG)$(ARCH)
244
244
endif
245
+ CFLAGS += -I$(LLDB_BASE_DIR)include -I$(LLDB_OBJ_ROOT)/include
245
246
246
247
CFLAGS += -I$(SRCDIR) -I$(THIS_FILE_DIR)
247
248
You can’t perform that action at this time.
0 commit comments