Re: [tip: x86/urgent] x86/build: Do not allow X86_NATIVE_CPU to be enabled when compile testing

From: Linus Torvalds

Date: Mon Nov 16 2026 - 10:53:47 EST


On Mon, 16 Nov 2026 at 07:48, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Or even do '$(CC) -v" and '$(HOSTCC) -v' and check for 'Target' being
> the same, and having a CONFIG_CROSSCOMPILE thing for that?

... and maybe we can just make '-march=native' be a generic setting
and *not* make it x86-specific?

Although it appears that at least on arm, it should do '-mtune=native'
in addition to -march.

Linus