[Bug 272900] Mk/Uses/cpufeatures.mk - Framework helper for detecting CPU features/instructions

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 05 Aug 2023 09:38:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272900

--- Comment #9 from Daniel Engberg <diizzy@FreeBSD.org> ---
(In reply to Piotr Kubaj from comment #8)
I think you misunderstand or I wasn't clear about it, I don't want to use
-native specifically. 

"and -march=native would follow CPUTYPE" --> -march=${CPUTYPE}

Not sure if we should use a list like we're doing right now or generate
variables using a documented "protected" naming schema.

Like HAVE_CPU_FEAT_${TARGET_FEATURE} or HAVE_CPU_INSTR_${TARGET_FEATURE} where
it would be extracted from compiler output. 
Example: .... -target-feature +mmx -target-feature +avx2 ...
HAVE_CPU_FEAT_MMX , HAVE_CPU_FEAT_AVX2

Best regards,
Daniel

-- 
You are receiving this mail because:
You are on the CC list for the bug.