From: LLVM Packaging Team Date: Tue, 30 Nov 2021 18:32:51 +0000 (+0000) Subject: lldb-soname X-Git-Tag: archive/raspbian/1%12.0.1-17+rpi1^2~64 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6c1e63aa28307a52bb8f067cb644bd4d5eeb1a84;p=llvm-toolchain-12.git lldb-soname Gbp-Pq: Name lldb-soname.diff --- diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index a7d6592b31..31fd05332b 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -19,7 +19,12 @@ if(LLDB_ENABLE_LUA) set(lldb_lua_wrapper ${lua_bindings_dir}/LLDBWrapLua.cpp) 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 @@ -163,7 +168,7 @@ endif() set_target_properties(liblldb PROPERTIES - VERSION ${LLDB_VERSION} + VERSION 1 ) if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") @@ -188,11 +193,6 @@ if (MSVC) if (LLDB_ENABLE_PYTHON) target_link_libraries(liblldb PRIVATE ${Python3_LIBRARIES}) endif() -else() - set_target_properties(liblldb - PROPERTIES - OUTPUT_NAME lldb - ) endif() # The Clang expression parser in LLDB requires the Clang resource directory to function.