commit: 307968a6436a5bf05b935a96127cb484e4b67759
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 23 15:39:40 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 23 15:39:40 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=307968a6
toolchain.eclass: use extglob for hybrid hack
Thanks Ionen!
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 79032416e881..5fdbf47a8f3a 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1570,7 +1570,7 @@ gcc_do_filter_flags() {
declare -A l1_cache_sizes=()
# Workaround for inconsistent cache sizes on hybrid P/E cores
# See PR111768 (and bug #904426, bug #908523, and bug #915389)
- if [[ ${CBUILD} == x86_64* || ${CBUILD} == i?86* ]] && [[ ${CFLAGS} ==
*-march=native* ]] && tc-is-gcc ; then
+ if [[ ${CBUILD} == @(x86_64|i?86)* ]] && [[ ${CFLAGS} ==
*-march=native* ]] && tc-is-gcc ; then
local x
local l1_cache_size
# Iterate over all cores and find their L1 cache size