commit: 2dc8b4a7961ded7a38552e75358dec4f110a3092
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 7 16:51:55 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 7 17:00:56 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dc8b4a7
llvm.org.eclass: Add LLVM_SOABI variable
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/llvm.org.eclass | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass
index b00c8029e72a..14ec9c63e170 100644
--- a/eclass/llvm.org.eclass
+++ b/eclass/llvm.org.eclass
@@ -216,6 +216,14 @@ ALL_LLVM_TARGET_FLAGS=(
"${ALL_LLVM_EXPERIMENTAL_TARGETS[@]/#/llvm_targets_}"
)
+# @ECLASS_VARIABLE: LLVM_SOABI
+# @OUTPUT_VARIABLE
+# @DESCRIPTION:
+# The current ABI version of LLVM dylib, in a form suitable for use
+# as a subslot. This is equal to LLVM_MAJOR for releases, and to PV
+# for the main branch.
+LLVM_SOABI=${LLVM_MAJOR}
+[[ ${LLVM_MAJOR} == ${_LLVM_MASTER_MAJOR} ]] && LLVM_SOABI=${PV}
# == global scope logic ==