summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-20 03:02:59 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-20 03:02:59 +0000
commit8a5f3383bbc5f817d89554020a3600d06985bc4a (patch)
treec1f7e85e7de87c74b4c730fab5369051cef5cb32 /eclass
parentf2e359c456b051f95efc92e21299d55a302e58ed (diff)
gentoo auto-resync : 20:11:2024 - 03:02:59
Diffstat (limited to 'eclass')
-rw-r--r--eclass/Manifest.gzbin39020 -> 39022 bytes
-rw-r--r--eclass/toolchain.eclass11
2 files changed, 9 insertions, 2 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz
index 387bc0b27c17..e16f8d370b78 100644
--- a/eclass/Manifest.gz
+++ b/eclass/Manifest.gz
Binary files differ
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index f131da7dbd68..02db921ce133 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -333,6 +333,7 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then
# it was disabled in 13.
tc_version_is_at_least 14.0.0_pre20230423 ${PV} && IUSE+=" rust" TC_FEATURES+=( rust )
tc_version_is_at_least 14.2.1_p20241026 ${PV} && IUSE+=" time64"
+ tc_version_is_at_least 15.0.0_pre20241124 ${PV} && IUSE+=" libdiagnostics"
fi
if tc_version_is_at_least 10; then
@@ -1732,8 +1733,8 @@ toolchain_src_configure() {
gcc_shell="${BROOT}"/bin/sh
fi
- if is_jit ; then
- einfo "Configuring JIT gcc"
+ if is_jit || _tc_use_if_iuse libdiagnostics ; then
+ einfo "Configuring shared gcc for JIT/libdiagnostics"
local confgcc_jit=(
"${confgcc[@]}"
@@ -1757,8 +1758,10 @@ toolchain_src_configure() {
--disable-nls
--disable-objc-gc
--disable-systemtap
+
--enable-host-shared
--enable-languages=jit
+
# Might be used for the just-built GCC. Easier to just
# respect USE=graphite here in case the user passes some
# graphite flags rather than try strip them out.
@@ -1767,6 +1770,10 @@ toolchain_src_configure() {
--with-system-zlib
)
+ if tc_version_is_at_least 15.0.0_pre20241124 ${PV} ; then
+ confgcc_jit+=( $(use_enable libdiagnostics) )
+ fi
+
if tc_version_is_at_least 13.1 ; then
confgcc_jit+=( --disable-fixincludes )
fi