Re: [PATCH] x86/build: Do not allow X86_NATIVE_CPU to be enabled on non-x86_64 hosts
From: Borislav Petkov
Date: Sat Nov 14 2026 - 15:58:42 EST
On Sat, Nov 14, 2026 at 01:46:05PM -0700, Nathan Chancellor wrote:
> No other architectures provide an option to turn on '-march=native' like
> x86 does. It all lives within arch/x86, so I would just be adding a
> check to arch/x86/Makefile instead of arch/x86/Kconfig.cpu. Making the
> option unselectable seems like a better option. If other architectures
> did want to add this option, I agree generically abstacting this check
> would be reasonable.
Are you going to move it somewhere generic when other arches decide all of
a sudden they love the native thing?
(If it were me, I'd simply whack that native thing. It is such a waste of
energy).
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette