summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2023-07-09 13:14:01 +0800
committerBenda Xu <heroxbd@gentoo.org>2023-07-09 13:14:01 +0800
commit503fa9bc402353c5a89995e13c5a2f98772ccb76 (patch)
treebe0dccd9f61192bf4674788366636865ea16dcdc
parentp/p/{darwin/macos,sunos/solaris}: move the xattr masks downwards. (diff)
downloadgentoo-503fa9bc402353c5a89995e13c5a2f98772ccb76.tar.gz
gentoo-503fa9bc402353c5a89995e13c5a2f98772ccb76.tar.bz2
gentoo-503fa9bc402353c5a89995e13c5a2f98772ccb76.zip
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@gentoo.org>
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/make.defaults3
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/use.mask23
2 files changed, 25 insertions, 1 deletions
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 <heroxbd@gentoo.org> (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