diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-11 05:38:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-11 05:38:21 +0100 |
commit | d6260e76da0a436affc6839e470dd8619841cadc (patch) | |
tree | ca1df2a7c2e422ab51b16244374ae8ba94ab784e /eclass/toolchain.eclass | |
parent | 6990d0600970cefe6aa2c17668f9028b08d23441 (diff) |
gentoo auto-resync : 11:04:2023 - 05:38:21
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 6a04366bcc1e..0a5e2e1e50aa 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1069,9 +1069,12 @@ toolchain_src_configure() { # Use the default ("release") checking because upstream usually neglects # to test "disabled" so it has a history of breaking. bug #317217 if in_iuse debug ; then - # The "release" keyword is new to 4.0. bug #551636 - local off=$(tc_version_is_at_least 4.0 && echo release || echo no) - confgcc+=( --enable-checking="${GCC_CHECKS_LIST:-$(usex debug yes ${off})}" ) + # Non-released versions get extra checks, follow configure.ac's default to for those. + if ! grep -q "experimental" gcc/DEV-PHASE ; then + # The "release" keyword is new to 4.0. bug #551636 + local off=$(tc_version_is_at_least 4.0 && echo release || echo no) + confgcc+=( --enable-checking="${GCC_CHECKS_LIST:-$(usex debug yes ${off})}" ) + fi fi # Branding |