Add minor version to libclang.so and libclang-cpp.so SONAME
Some checks failed
libclc Tests / libclc test (push) Failing after 0s
Clang Tests / clang check-all (push) Has been cancelled
lldb Tests / lldb build (push) Has been cancelled

This patch is for the release/11.x branch.  We need to bump the SONAME, because
the ABI of the shared library is changing

Reviewed By: sylvestre.ledru, cuviper

Differential Revision: https://reviews.llvm.org/D94941
This commit is contained in:
Tom Stellard 2021-01-21 11:35:48 -08:00
parent 9bbcb554cd
commit 3a8282376b
3 changed files with 7 additions and 1 deletions

View file

@ -509,7 +509,7 @@ set(CLANG_EXECUTABLE_VERSION
"${CLANG_VERSION_MAJOR}" CACHE STRING
"Major version number that will be appended to the clang executable name")
set(LIBCLANG_LIBRARY_VERSION
"${CLANG_VERSION_MAJOR}" CACHE STRING
"${CLANG_VERSION_MAJOR}.${CLANG_VERSION_MINOR}" CACHE STRING
"Major version number that will be appended to the libclang library")
mark_as_advanced(CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION)

View file

@ -48,3 +48,8 @@ add_clang_library(clang-cpp
${_OBJECTS}
LINK_LIBS
${_DEPS})
set_target_properties(clang-cpp
PROPERTIES
VERSION ${LIBCLANG_LIBRARY_VERSION}
SOVERSION ${LIBCLANG_LIBRARY_VERSION})

View file

@ -150,6 +150,7 @@ if(ENABLE_SHARED)
else()
set_target_properties(libclang
PROPERTIES
SOVERSION ${LIBCLANG_LIBRARY_VERSION}
VERSION ${LIBCLANG_LIBRARY_VERSION}
DEFINE_SYMBOL _CINDEX_LIB_)
# FIXME: _CINDEX_LIB_ affects dllexport/dllimport on Win32.