diff options
author | 2024-03-23 15:39:40 +0000 | |
---|---|---|
committer | 2024-03-23 15:39:40 +0000 | |
commit | 307968a6436a5bf05b935a96127cb484e4b67759 (patch) | |
tree | e280219e9ec1006faa8ad5408b1ecb52852a0bb2 /eclass | |
parent | sys-devel/clang-common: updates for 23.0 (diff) | |
download | gentoo-307968a6436a5bf05b935a96127cb484e4b67759.tar.gz gentoo-307968a6436a5bf05b935a96127cb484e4b67759.tar.bz2 gentoo-307968a6436a5bf05b935a96127cb484e4b67759.zip |
toolchain.eclass: use extglob for hybrid hack
Thanks Ionen!
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 |