Blame SOURCES/0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch

900810
From 3dc5722d5c7673a879f2b4680369d3ac8b6b64b6 Mon Sep 17 00:00:00 2001
900810
From: Tom Stellard <tstellar@redhat.com>
900810
Date: Wed, 4 Aug 2021 14:05:38 -0700
900810
Subject: [PATCH] cmake: Allow shared libraries to customize the soname using
900810
 LLVM_ABI_REVISION
900810
900810
The LLVM_ABI_REVISION variable is intended to be used for release
900810
candidates which introduce an ABI change to a shared library.  This
900810
variable can be specified per library, so there is not one global value
900810
for all of LLVM.
900810
900810
For example, if we LLVM X.0.0-rc2 introduces an ABI change for a library
900810
compared with LLVM X.0.0-rc1, then the LLVM_ABI_REVISION number for
900810
library will be incremented by 1.
900810
900810
In the main branch, LLVM_ABI_REVISION should always be 0, it is only
900810
meant to be used in the release branch.
900810
900810
Differential Revision: https://reviews.llvm.org/D105594
900810
---
900810
 clang/tools/clang-shlib/CMakeLists.txt | 5 +++++
900810
 3 files changed, 19 insertions(+), 2 deletions(-)
900810
900810
diff --git a/clang/tools/clang-shlib/CMakeLists.txt b/clang/tools/clang-shlib/CMakeLists.txt
900810
index 9c1f8ea452b3..4d785924e4bb 100644
900810
--- a/clang/tools/clang-shlib/CMakeLists.txt
900810
+++ b/clang/tools/clang-shlib/CMakeLists.txt
900810
@@ -1,3 +1,8 @@
900810
+# In the main branch, LLVM_ABI_REVISION should always be 0.  In the release
900810
+# branches, this should be incremented before each release candidate every
900810
+# time the ABI of libclang-cpp.so changes.
900810
+set(LLVM_ABI_REVISION 0)
900810
+
900810
 # Building libclang-cpp.so fails if LLVM_ENABLE_PIC=Off
900810
 if (NOT LLVM_ENABLE_PIC)
900810
   return()
900810
-- 
900810
2.27.0
900810