Revert "[lldb] Calculate relative path for symbol links"
authorJim Ingham <jingham@apple.com>
Wed, 9 Oct 2019 20:56:43 +0000 (20:56 +0000)
committerJim Ingham <jingham@apple.com>
Wed, 9 Oct 2019 20:56:43 +0000 (20:56 +0000)
commitc0da1282fc036908cc721ee74f574fbb99d5e506
treef217053c624717c6ea023fba47f2f1657b031e45
parent21b8a8ae27f3a374c55efce5a5637f732eb6595c
Revert "[lldb] Calculate relative path for symbol links"

This reverts commit 958091c209d0a92e38b9cb27fb77a0ff7da11853.

This commit incorrectly sets the _lldb.so symlink (at least it does when
building in Stefans' two build directory mode, where you build llvm with
cmake/ninja and lldb with cmake/Xcode, using a cmake generated project.

The _lldb.so link is SUPPOSED to point to:

bin/LLDB.framework/Versions/A/LLDB

but instead it points to

bin/LLDB

which is where LLDB was staged to before constructing the framework.  This
causes all sorts of problems when we then build the lldb driver into bin -
remember that MacOS is a case-preserving but case insensitive filesystem -
so when we later go to dlopen _lldb.so, we dlopen the main executable instead.

llvm-svn: 374226
lldb/scripts/Python/finishSwigPythonLLDB.py