diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-02-21 21:38:28 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-02-22 05:22:52 +0100 |
commit | 97bc53108f32a26fe8e8463764d95bb0a3d521d9 (patch) | |
tree | fd68693836af94aa955ccbd1f5c42651a278254f /eclass/llvm.org.eclass | |
parent | sys-devel/clang: Add sys-devel/lld test dep (diff) | |
download | gentoo-97bc53108f32a26fe8e8463764d95bb0a3d521d9.tar.gz gentoo-97bc53108f32a26fe8e8463764d95bb0a3d521d9.tar.bz2 gentoo-97bc53108f32a26fe8e8463764d95bb0a3d521d9.zip |
llvm.org.eclass: Use two ver. comp. for LLVM_SOABI in >=18.1.0_rc3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/llvm.org.eclass')
-rw-r--r-- | eclass/llvm.org.eclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass index 25316f0d65e9..de07fecea8e1 100644 --- a/eclass/llvm.org.eclass +++ b/eclass/llvm.org.eclass @@ -205,10 +205,14 @@ ALL_LLVM_TARGET_FLAGS=( # @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_MAIN_MAJOR} ]] && LLVM_SOABI=${PV} +# as a subslot. +if [[ ${LLVM_MAJOR} == ${_LLVM_MAIN_MAJOR} ]]; then + LLVM_SOABI=${PV} +elif ver_test ${PV} -ge 18.1.0_rc3; then + LLVM_SOABI=$(ver_cut 1-2) +else + LLVM_SOABI=${LLVM_MAJOR} +fi # == global scope logic == |