[lldb] Creates _liblldb symlink from cmake
authorHaibo Huang <hhb@google.com>
Tue, 15 Oct 2019 21:58:45 +0000 (21:58 +0000)
committerHaibo Huang <hhb@google.com>
Tue, 15 Oct 2019 21:58:45 +0000 (21:58 +0000)
commit208e9c01fc094cedbcf47f39a902cff13dce0039
treeefb4ea2ccf2259793278ce5304fe333bf947ce12
parent666f977166541f1c71f64357a3157c56ecec8faf
[lldb] Creates _liblldb symlink from cmake

Summary:
This is another attempt of D67993.

This change removed hard coded relative paths. This way we can generate correct result when get_python_lib() returns a different path, or LLDB_PYTHON_RELATIVE_PATH is specified directly.

By moving things out of python, we are also able to correctly process more cross compile situations. E.g. .pyd vs .so for Windows.

Subscribers: lldb-commits, mgorny

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D68858

llvm-svn: 374953
lldb/CMakeLists.txt
lldb/scripts/Python/finishSwigPythonLLDB.py