Add gcc_14 and gcc_15 to the list of ada compilers

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2024-09-30 08:13:11 +02:00
parent 76128fc096
commit a611f5cabe
2 changed files with 15 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ _ADA_ECLASS=1
# @DESCRIPTION:
# All supported Ada implementations, most preferred last.
_ADA_ALL_IMPLS=(
gnat_2021 gcc_12 gcc_13
gnat_2021 gcc_12 gcc_13 gcc_14 gcc_15
)
readonly _ADA_ALL_IMPLS
@@ -119,7 +119,7 @@ _ada_impl_supported() {
# keep in sync with _ADA_ALL_IMPLS!
# (not using that list because inline patterns shall be faster)
case "${impl}" in
gnat_2021|gcc_12|gcc_13)
gnat_2021|gcc_12|gcc_13|gcc_14|gcc_15)
return 0
;;
*)
@@ -213,7 +213,7 @@ ada_export() {
local impl var
case "${1}" in
gnat_2021|gcc_12|gcc_13)
gnat_2021|gcc_12|gcc_13|gcc_14|gcc_15)
impl=${1}
shift
;;
@@ -241,6 +241,14 @@ ada_export() {
gcc_pv=13
slot=13
;;
gcc_14)
gcc_pv=14
slot=14
;;
gcc_15)
gcc_pv=15
slot=15
;;
*)
gcc_pv="9.9.9"
slot=9.9.9
@@ -294,7 +302,7 @@ ada_export() {
gnat_2021)
ADA_PKG_DEP="dev-lang/gnat-gpl:${slot}[ada]"
;;
gcc_12|gcc_13)
gcc_12|gcc_13|gcc_14|gcc_15)
ADA_PKG_DEP="sys-devel/gcc:${slot}[ada]"
;;
*)

View File

@@ -1,6 +1,8 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
gnat_2021 - Compile with dev-lang/gnat-gpl-2021
gcc_12 - Compile with sys-devel/gcc:12
gcc_13 - Compile with sys-devel/gcc:13
gcc_14 - Compile with sys-devel/gcc:14
gcc_15 - Compile with sys-devel/gcc:15