commit: 503fa9bc402353c5a89995e13c5a2f98772ccb76 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> AuthorDate: Sun Jul 9 05:14:01 2023 +0000 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> CommitDate: Sun Jul 9 05:14:01 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=503fa9bc
p/p/darwin/macos/arch/x64: allow users to tune the x86 CPU flags. This is useful to fine tune the number crunching performance on macOS. Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> .../prefix/darwin/macos/arch/x64/make.defaults | 3 ++- profiles/prefix/darwin/macos/arch/x64/use.mask | 23 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/profiles/prefix/darwin/macos/arch/x64/make.defaults b/profiles/prefix/darwin/macos/arch/x64/make.defaults index 9dee8c00f5f0..e4b9746c663a 100644 --- a/profiles/prefix/darwin/macos/arch/x64/make.defaults +++ b/profiles/prefix/darwin/macos/arch/x64/make.defaults @@ -1,9 +1,10 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2023 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 ARCH="x64-macos" ACCEPT_KEYWORDS="~x64-macos" +USE_EXPAND_HIDDEN="-CPU_FLAGS_X86" CPU_FLAGS_X86="mmx mmxext sse sse2" # multilib build stuff, single ABI (no multilib) diff --git a/profiles/prefix/darwin/macos/arch/x64/use.mask b/profiles/prefix/darwin/macos/arch/x64/use.mask index 01a9fae674b6..6bf08722e781 100644 --- a/profiles/prefix/darwin/macos/arch/x64/use.mask +++ b/profiles/prefix/darwin/macos/arch/x64/use.mask @@ -4,3 +4,26 @@ # Unmask the flag corresponding to the default ABI -x64-macos -abi_x86_64 + +# Benda Xu <[email protected]> (2023-07-09) +# Unmask the CPU-flag related USE EXPAND, as in the general arch/amd64 + +-cpu_flags_x86_3dnow +-cpu_flags_x86_3dnowext +-cpu_flags_x86_aes +-cpu_flags_x86_avx +-cpu_flags_x86_avx2 +-cpu_flags_x86_fma3 +-cpu_flags_x86_fma4 +-cpu_flags_x86_mmx +-cpu_flags_x86_mmxext +-cpu_flags_x86_padlock +-cpu_flags_x86_popcnt +-cpu_flags_x86_sse +-cpu_flags_x86_sse2 +-cpu_flags_x86_sse3 +-cpu_flags_x86_sse4_1 +-cpu_flags_x86_sse4_2 +-cpu_flags_x86_sse4a +-cpu_flags_x86_ssse3 +-cpu_flags_x86_xop
