diff options
Diffstat (limited to 'eclass/ada.eclass')
-rw-r--r-- | eclass/ada.eclass | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/eclass/ada.eclass b/eclass/ada.eclass index a5cb9b297ee5..e5b62951917a 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 + gnat_2021 gcc_12 gcc_13 ) readonly _ADA_ALL_IMPLS @@ -119,10 +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) - return 0 - ;; - gcc_12) + gnat_2021|gcc_12|gcc_13) return 0 ;; *) @@ -216,11 +213,7 @@ ada_export() { local impl var case "${1}" in - gnat_2021) - impl=${1} - shift - ;; - gcc_12) + gnat_2021|gcc_12|gcc_13) impl=${1} shift ;; @@ -244,6 +237,10 @@ ada_export() { gcc_pv=12 slot=12 ;; + gcc_13) + gcc_pv=13 + slot=13 + ;; *) gcc_pv="9.9.9" slot=9.9.9 @@ -293,7 +290,7 @@ ada_export() { gnat_2021) ADA_PKG_DEP="dev-lang/gnat-gpl:${slot}[ada]" ;; - gcc_12) + gcc_12|gcc_13) ADA_PKG_DEP="sys-devel/gcc:${slot}[ada]" ;; *) |