summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-08-08 20:45:03 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-08-08 20:45:03 +0000
commitc4ede8f8af27e328c9d4dcbe5f8c9a07b4653d4b (patch)
treee0f0f1cadd8439dc76e5d20d9ce07af3e14cd79a
parent24cb754b70b1e917db54d35007168c57a0bdd08e (diff)
downloadbcm5719-llvm-c4ede8f8af27e328c9d4dcbe5f8c9a07b4653d4b.tar.gz
bcm5719-llvm-c4ede8f8af27e328c9d4dcbe5f8c9a07b4653d4b.zip
[cmake] Append LLVM_VERSION_SUFFIX to SOVERSION
Append LLVM_VERSION_SUFFIX to SOVERSION. This makes it possible to use the suffix to differentiate binary-incompatible versions of LLVM built via BUILD_SHARED_LIBS. We are planning to use this to temporarily preserve ABI-incompatible variants of LLVM while switching the system between them, e.g. when rebuilding the system to use libc++. Normally this would mean that once LLVM is rebuilt using libc++ all the reverse dependencies become immediately broken. Using a distinct SOVERSION allows us to preserve the ABI compatibility before all the packages are rebuilt. Differential Revision: https://reviews.llvm.org/D39939 llvm-svn: 339286
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index ce2057f803c..24ef5e43bc6 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -499,7 +499,7 @@ function(llvm_add_library name)
set_target_properties(${name}
PROPERTIES
# Since 4.0.0, the ABI version is indicated by the major version
- SOVERSION ${LLVM_VERSION_MAJOR}
+ SOVERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}
VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX})
endif()
endif()
OpenPOWER on IntegriCloud