summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-03-22 19:02:23 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-04-30 21:24:58 +0200
commitc84ba1bebef686f74503ec61c9b8eb86ed2adbff (patch)
tree8e5de8f91da347da1b897ca8e5852637e2a9e85c /eclass
parenttoolchain.eclass: To make "tc_has_feature ada" actually work (diff)
downloadgentoo-c84ba1bebef686f74503ec61c9b8eb86ed2adbff.tar.gz
gentoo-c84ba1bebef686f74503ec61c9b8eb86ed2adbff.tar.bz2
gentoo-c84ba1bebef686f74503ec61c9b8eb86ed2adbff.zip
Building the ada compiler require both c++ and ada USE flags enabled.
Otherwise drop ada. Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass2
1 files changed, 1 insertions, 1 deletions
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() {