Re: [PATCH] rust: Kbuild: set frame-pointer llvm module flag for CONFIG_FRAME_POINTER
Alice Ryhl <[email protected]>
| Newsgroups | org.kernel.vger.linux-kbuild,dev.linux.lists.llvm,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <CAH5fLgjqVxoBVdoSG40vE2uqybeC3zvgi7T_fTA1=HwFY010Hw@mail.gmail.com> |
On Tue, Jun 16, 2026 at 3:34 PM Miguel Ojeda <[email protected]> wrote: > > On Tue, Jun 16, 2026 at 2:30 PM Alice Ryhl <[email protected]> wrote: > > > > Cc: [email protected] > > Fixes: 2f7ab1267dc9 ("Kbuild: add Rust support") > > For 6.1.y, we use Rust 1.62.0, so we don't have `-Zllvm_module_flag`, > so we cannot go that far back. I guess we will need to accept the > issue there. > > For 6.6.y, we use Rust 1.73.0, so we don't have it either. > > For 6.12.y onward, we support Rust 1.78.0, so it is fine -- > `-Zllvm_module_flag` got added in Rust 1.76.0. > > In both 6.1.y and 6.6.y, we also don't have `rustc-min-version`, > because the version is pinned there. That part happens to work, > though, just due to how lax Make is... However, if the flag had been > available, then we should probably still do it cleanly with a custom > patch to avoid confusion. > > So I will instead do: > > Cc: [email protected] # 6.12.y and later (flag not available in > pinned Rust in older LTSs). Ah, I didn't know it was so new. That makes sense, thanks. Alice