From: LLVM Packaging Team Date: Sat, 7 Nov 2020 14:53:51 +0000 (+0000) Subject: lldb-soname X-Git-Tag: archive/raspbian/1%11.0.0-5+rpi1~55 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8746ce9b552f67f0f65ad563eeb9f742f912a8ed;p=llvm-toolchain-11.git lldb-soname Gbp-Pq: Name lldb-soname.diff --- diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index ce6a7ec83..e2bf92cd5 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -19,7 +19,12 @@ if(LLDB_BUILD_FRAMEWORK) set(option_framework FRAMEWORK) endif() -add_lldb_library(liblldb SHARED ${option_framework} +set(output_name lldb) +if (CMAKE_SYSTEM_NAME MATCHES "Windows") + set(output_name liblldb) +endif() + +add_lldb_library(liblldb SHARED OUTPUT_NAME ${output_name} SONAME SBAddress.cpp SBAttachInfo.cpp SBBlock.cpp @@ -166,7 +171,7 @@ endif() set_target_properties(liblldb PROPERTIES - VERSION ${LLDB_VERSION} + VERSION 1 ) if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") @@ -191,11 +196,6 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) if (MSVC AND LLDB_ENABLE_PYTHON) target_link_libraries(liblldb PRIVATE ${PYTHON_LIBRARIES}) endif() -else() - set_target_properties(liblldb - PROPERTIES - OUTPUT_NAME lldb - ) endif() if (NOT LLDB_BUILT_STANDALONE)