diff options
Diffstat (limited to 'lldb/scripts/Python/finish-swig-Python-LLDB.sh')
-rwxr-xr-x | lldb/scripts/Python/finish-swig-Python-LLDB.sh | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index c6a46510058..3f024950db6 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -240,12 +240,24 @@ create_python_package "/formatters" "${package_files}" package_files="${SRC_ROOT}/examples/python/symbolication.py" create_python_package "/utils" "${package_files}" -# lldb/macosx -package_files="${SRC_ROOT}/examples/python/crashlog.py -${SRC_ROOT}/examples/darwin/heap_find/heap.py" -create_python_package "/macosx" "${package_files}" - +if [ ${OS_NAME} == "Darwin" ] +then + # lldb/macosx + package_files="${SRC_ROOT}/examples/python/crashlog.py + ${SRC_ROOT}/examples/darwin/heap_find/heap.py" + create_python_package "/macosx" "${package_files}" + + # Copy files needed by lldb/macosx/heap.py to build libheap.dylib + heap_dir="${framework_python_dir}/macosx/heap" + if [ ! -d "${heap_dir}" ] + then + mkdir -p "${heap_dir}" + cp "${SRC_ROOT}/examples/darwin/heap_find/heap/heap_find.cpp" "${heap_dir}" + cp "${SRC_ROOT}/examples/darwin/heap_find/heap/Makefile" "${heap_dir}" + fi +fi fi + exit 0 |