Skip to content

Commit a11083f

Browse files
committed
[lldb] Swift/downstream support for SBLanguages & SWIG
1 parent 19ef747 commit a11083f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

lldb/bindings/prepare_bindings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ def process_args(args):
135135
os.path.dirname(os.path.realpath(__file__)),
136136
os.path.pardir)),
137137
help="Specifies the LLDB source root directory.")
138+
parser.add_argument(
139+
"--build-root",
140+
"--buildRoot",
141+
"-b",
142+
help="Specifies the LLDB build root directory.")
138143
parser.add_argument(
139144
"--swig-executable",
140145
"--swigExecutable",

lldb/bindings/python/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ add_custom_command(
1616
COMMAND ${Python3_EXECUTABLE} ${LLDB_SOURCE_DIR}/bindings/prepare_bindings.py
1717
${framework_arg}
1818
--srcRoot=${LLDB_SOURCE_DIR}
19+
--buildRoot=${LLDB_BINARY_DIR}
1920
--targetDir=${CMAKE_CURRENT_BINARY_DIR}
2021
--cfgBldDir=${CMAKE_CURRENT_BINARY_DIR}
2122
--prefix=${CMAKE_BINARY_DIR}

lldb/bindings/python/prepare_binding_python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def do_swig_rebuild(options, dependency_file, config_build_dir, settings):
209209
"-features", "autodoc",
210210
"-threads",
211211
"-I" + os.path.normpath(os.path.join(options.src_root, "include")),
212+
"-I" + os.path.normpath(os.path.join(options.build_root, "include")),
212213
"-I" + bindings_dir,
213214
"-I" + bindings_python_dir,
214215
"-D__STDC_LIMIT_MACROS",

0 commit comments

Comments
 (0)