diff options
| author | Zachary Turner <zturner@google.com> | 2015-01-26 17:23:18 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2015-01-26 17:23:18 +0000 |
| commit | 0bf09687fb624c78e97d2546216558e25c9f4cb3 (patch) | |
| tree | 92522a714cb47c10b23ad15dd1fadd89b62f9bf3 /lldb/scripts/Python/finish-swig-Python-LLDB.sh | |
| parent | 078b612de1ea10c7c0bf2645b9bcdcf12086f522 (diff) | |
| download | bcm5719-llvm-0bf09687fb624c78e97d2546216558e25c9f4cb3.tar.gz bcm5719-llvm-0bf09687fb624c78e97d2546216558e25c9f4cb3.zip | |
Fix darwin-debug build in cmake (OS X)
This patch fixes test_launch_in_terminal test which doesn't work
in OS X since the moment as it was added in r225284. The test fails
because Target::Launch returns the following error: "the darwin-debug
executable doesn't exist at
<output_dir>/lib/python2.7/site-packages/lldb/darwin-debug'".
Patch by Ilia K
Differential Revision: http://reviews.llvm.org/D7102
llvm-svn: 227096
Diffstat (limited to 'lldb/scripts/Python/finish-swig-Python-LLDB.sh')
| -rwxr-xr-x | lldb/scripts/Python/finish-swig-Python-LLDB.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index 2e286a632cc..690e88272d3 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -167,6 +167,25 @@ else fi fi +if [ ${OS_NAME} = "Darwin" ] && [ $MakefileCalled -ne 0 ] +then + # We are being built by CMake on Darwin + + if [ ! -L "${framework_python_dir}/darwin-debug" ] + then + if [ $Debug -eq 1 ] + then + echo "Creating symlink for darwin-debug" + fi + cd "${framework_python_dir}" + ln -s "../../../../bin/lldb-launcher" darwin-debug + else + if [ $Debug -eq 1 ] + then + echo "${framework_python_dir}/darwin-debug already exists." + fi + fi +fi create_python_package () { package_dir="${framework_python_dir}$1" |

