summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-30 03:17:50 +0100
committerSam James <sam@gentoo.org>2024-09-30 03:17:50 +0100
commit9cfe1db9d69d0363f7591734822d4ba527d538fd (patch)
treedc86a45f6ec90a8aa52497e9de83a0659681ba41
parenttoolchain.eclass: move Ada and D logic into their own functions (diff)
downloadgentoo-9cfe1db9d69d0363f7591734822d4ba527d538fd.tar.gz
gentoo-9cfe1db9d69d0363f7591734822d4ba527d538fd.tar.bz2
gentoo-9cfe1db9d69d0363f7591734822d4ba527d538fd.zip
toolchain.eclass: consolidate language configure options
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/toolchain.eclass24
1 files changed, 12 insertions, 12 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 41f51b1bb747..9900b2989abf 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1022,18 +1022,6 @@ toolchain_src_configure() {
fi
[[ -n ${CBUILD} ]] && confgcc+=( --build=${CBUILD} )
- _need_ada_bootstrap_mangling() {
- if [[ ${CATEGORY}/${PN} == dev-lang/gnat-gpl ]] ; then
- _tc_use_if_iuse system-bootstrap && return 0
- return 1
- fi
-
- _tc_use_if_iuse ada
- }
-
- _need_ada_bootstrap_mangling && toolchain_setup_ada
- _tc_use_if_iuse d && toolchain_setup_d
-
confgcc+=(
--prefix="${PREFIX}"
--bindir="${BINPATH}"
@@ -1088,6 +1076,18 @@ toolchain_src_configure() {
is_modula2 && GCC_LANG+=",m2"
is_rust && GCC_LANG+=",rust"
+ _need_ada_bootstrap_mangling() {
+ if [[ ${CATEGORY}/${PN} == dev-lang/gnat-gpl ]] ; then
+ _tc_use_if_iuse system-bootstrap && return 0
+ return 1
+ fi
+
+ _tc_use_if_iuse ada
+ }
+
+ _need_ada_bootstrap_mangling && toolchain_setup_ada
+ _tc_use_if_iuse d && toolchain_setup_d
+
confgcc+=( --enable-languages=${GCC_LANG} )
### general options