commit:     a611f5cabe8a02d693ecea803499dde51b2d0efc
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 30 06:13:11 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Sep 30 06:16:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a611f5ca

Add gcc_14 and gcc_15 to the list of ada compilers

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 eclass/ada.eclass             | 16 ++++++++++++----
 profiles/desc/ada_target.desc |  4 +++-
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index 3c3fa3c01453..faff19a6ac85 100644
--- a/eclass/ada.eclass
+++ b/eclass/ada.eclass
@@ -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]"
                                                ;;
                                        *)

diff --git a/profiles/desc/ada_target.desc b/profiles/desc/ada_target.desc
index 005be2d73640..d9b797cfb661 100644
--- a/profiles/desc/ada_target.desc
+++ b/profiles/desc/ada_target.desc
@@ -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

Reply via email to