commit:     c84ba1bebef686f74503ec61c9b8eb86ed2adbff
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 22 18:02:23 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Apr 30 19:24:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84ba1be

Building the ada compiler require both c++ and ada USE flags enabled.

Otherwise drop ada.

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

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index b51f146ce25b..4d057de7a0f3 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2507,7 +2507,7 @@ _tc_use_if_iuse() {
 
 is_ada() {
        gcc-lang-supported ada || return 1
-       _tc_use_if_iuse ada
+       _tc_use_if_iuse cxx && _tc_use_if_iuse ada
 }
 
 is_cxx() {

Reply via email to