Re: [PATCH] x86/build/64: Prevent native builds from generating APX instructions
From: Miguel Ojeda
Date: Fri Jul 31 2026 - 16:58:31 EST
On Fri, Jul 31, 2026 at 10:46 PM Chang S. Bae <chang.seok.bae@xxxxxxxxx> wrote:
>
> Given that one option would be relax the rustc version while tightening
> the backend like:
>
> Option 1: RUSTC_VERSION >= 108800 && RUSTC_LLVM_MAJOR_VERSION >= 23
>
> Or, simply like the previous:
>
> Option2: RUSTC_VERSION >= 109301
>
> Since the rustc front does no longer emits the `apxf` attribute starting
> from 1.93. Also, 1.93 requires at least LLVM 21 which already supports APX.
Does it mean it could be the "OR" of those two?
i.e. it sounds like we could avoid having to pick one or the other.
Thanks for double-checking that and doing the analysis, I appreciate
it! Figuring out the precise version gates for this sort of thing is
always informative on its own.
Cheers,
Miguel