summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-18 09:27:03 +0000
committerSam James <sam@gentoo.org>2024-11-18 09:27:22 +0000
commit7040530e1c792a2e6e8f36969c408459f9338bde (patch)
tree1e5b294962ee55100fa64f1a337d4aaf5c08dd67 /eclass
parentsys-devel/gcc: fix libgcc build on arm in 15.0.0_pre20241117 (diff)
downloadgentoo-7040530e1c792a2e6e8f36969c408459f9338bde.tar.gz
gentoo-7040530e1c792a2e6e8f36969c408459f9338bde.tar.bz2
gentoo-7040530e1c792a2e6e8f36969c408459f9338bde.zip
toolchain.eclass: only show checking warning w/ USE=-debug
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8fe3cde2a69f..deedb1867816 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1185,11 +1185,13 @@ toolchain_src_configure() {
if grep -q "experimental" gcc/DEV-PHASE ; then
# Tell users about the non-obvious behavior here so they don't think
# e.g. the next GCC release is super slow to compile things.
- ewarn "Unreleased GCCs default to extra runtime checks even with USE=-debug,"
- ewarn "matching upstream default behavior. We recommend keeping these enabled."
- ewarn "The checks (sometimes substantially) increase build time but provide important protection"
- ewarn "from potential miscompilations (wrong code) by turning them into build-time errors."
- ewarn "To override (not recommended), set: GCC_CHECKS_LIST=\"release\"."
+ if ! use debug ; then
+ ewarn "Unreleased GCCs default to extra runtime checks even with USE=-debug,"
+ ewarn "matching upstream default behavior. We recommend keeping these enabled."
+ ewarn "The checks (sometimes substantially) increase build time but provide important protection"
+ ewarn "from potential miscompilations (wrong code) by turning them into build-time errors."
+ ewarn "To override (not recommended), set: GCC_CHECKS_LIST=\"release\"."
+ fi
# - USE=debug for pre-releases: yes,extra,rtl (stornger than USE=debug for releases)
# - USE=-debug for pre-releases: yes,extra (following upstream default)