Add minor version to libclang.so and libclang-cpp.so SONAME
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:
parent
9bbcb554cd
commit
3a8282376b
3 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue