diff options
author | Greg Clayton <gclayton@apple.com> | 2012-04-25 01:49:50 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-04-25 01:49:50 +0000 |
commit | ed3eee6e55e367f4c0b954c55fecff57da8ef074 (patch) | |
tree | 1e003e85d2982d3e3f52b3efb9d3694a12eeb02a /lldb/scripts/Python | |
parent | 68b922590daa7d8dd5b17a89e01c5442da0a1b4b (diff) | |
download | bcm5719-llvm-ed3eee6e55e367f4c0b954c55fecff57da8ef074.tar.gz bcm5719-llvm-ed3eee6e55e367f4c0b954c55fecff57da8ef074.zip |
Now that we have an LLDB package, make the "lldb.macosx.crashlog" module work with all of the new module paths.
llvm-svn: 155528
Diffstat (limited to 'lldb/scripts/Python')
-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 |