Re: [PATCH] x86/build/64: Prevent native builds from generating APX instructions
Miguel Ojeda <[email protected]> Fri, 31 Jul 2026 22:57:56 +0200
| Newsgroups | org.kernel.vger.rust-for-linux,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <CANiq72n0K3ULP=7iZhB1hnu6NHEHea66drAN3DKJEG-usTn6QA@mail.gmail.com> |
On Fri, Jul 31, 2026 at 10:46=E2=80=AFPM Chang S. Bae <chang.seok.bae@intel= .com> wrote: > > Given that one option would be relax the rustc version while tightening > the backend like: > > Option 1: RUSTC_VERSION >=3D 108800 && RUSTC_LLVM_MAJOR_VERSION >=3D 23 > > Or, simply like the previous: > > Option2: RUSTC_VERSION >=3D 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 AP= X. 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