mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 15:41:04 +02:00
eclass/llvm-r1: Sync with Gentoo
It's from Gentoo commit 9f09b98ee6a5edce65e995c4701776e8e1c86d1d.
This commit is contained in:
parent
ee6d536a28
commit
afcdf3fc57
@ -31,8 +31,8 @@
|
|||||||
# DEPEND="
|
# DEPEND="
|
||||||
# dev-libs/libfoo[${LLVM_USEDEP}]
|
# dev-libs/libfoo[${LLVM_USEDEP}]
|
||||||
# $(llvm_gen_dep '
|
# $(llvm_gen_dep '
|
||||||
# sys-devel/clang:${LLVM_SLOT}
|
# sys-devel/clang:${LLVM_SLOT}=
|
||||||
# sys-devel/llvm:${LLVM_SLOT}
|
# sys-devel/llvm:${LLVM_SLOT}=
|
||||||
# ')
|
# ')
|
||||||
# "
|
# "
|
||||||
# @CODE
|
# @CODE
|
||||||
@ -61,7 +61,7 @@ _LLVM_OLDEST_SLOT=15
|
|||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# The newest stable LLVM version. Versions newer than that won't
|
# The newest stable LLVM version. Versions newer than that won't
|
||||||
# be automatically enabled via USE defaults.
|
# be automatically enabled via USE defaults.
|
||||||
_LLVM_NEWEST_STABLE=17
|
_LLVM_NEWEST_STABLE=18
|
||||||
|
|
||||||
# == control variables ==
|
# == control variables ==
|
||||||
|
|
||||||
@ -123,11 +123,16 @@ _llvm_set_globals() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${stable[@]} ]]; then
|
if [[ ${stable[@]} ]]; then
|
||||||
|
# If there is at least one stable slot supported, then enable
|
||||||
|
# the newest stable slot by default.
|
||||||
IUSE="+llvm_slot_${stable[-1]}"
|
IUSE="+llvm_slot_${stable[-1]}"
|
||||||
unset 'stable[-1]'
|
unset 'stable[-1]'
|
||||||
else
|
else
|
||||||
IUSE="+llvm_slot_${unstable[-1]}"
|
# Otherwise, enable the "oldest" ~arch slot. We really only
|
||||||
unset 'unstable[-1]'
|
# expect a single ~arch version, so this primarily prevents
|
||||||
|
# defaulting to non-keyworded slots.
|
||||||
|
IUSE="+llvm_slot_${unstable[0]}"
|
||||||
|
unset 'unstable[0]'
|
||||||
fi
|
fi
|
||||||
local nondefault=( "${stable[@]}" "${unstable[@]}" )
|
local nondefault=( "${stable[@]}" "${unstable[@]}" )
|
||||||
IUSE+=" ${nondefault[*]/#/llvm_slot_}"
|
IUSE+=" ${nondefault[*]/#/llvm_slot_}"
|
||||||
@ -158,8 +163,8 @@ unset -f _llvm_set_globals
|
|||||||
# @CODE
|
# @CODE
|
||||||
# DEPEND="
|
# DEPEND="
|
||||||
# $(llvm_gen_dep '
|
# $(llvm_gen_dep '
|
||||||
# sys-devel/clang:${LLVM_SLOT}
|
# sys-devel/clang:${LLVM_SLOT}=
|
||||||
# sys-devel/llvm:${LLVM_SLOT}
|
# sys-devel/llvm:${LLVM_SLOT}=
|
||||||
# ')
|
# ')
|
||||||
# "
|
# "
|
||||||
# @CODE
|
# @CODE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user