Re: [PATCH 2/2] rust: macros: fix `make rusttest` build on macOS

Tamir Duberstein
2025-02-07T18:37:44Z

On Fri, Feb 7, 2025 at 1:13 PM Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> wrote:
>
> On Fri, Feb 7, 2025 at 6:22 PM Tamir Duberstein <tamird@gmail.com> wrote:
> >
> > Do not emit `#[link_section = ".modinfo"]` on macOS (i.e. when building
> > userspace tests); .modinfo is not a legal section specifier in mach-o.
>
> I thought the changes we already applied were the ones needed for
> macOS support. Oh, well...
>
> Cheers,
> Miguel

Yeah, that's on me. I didn't know about (and hadn't tried) `make
rusttest` until the cstr series[0].

[0] https://lore.kernel.org/all/20250203-cstr-core-v8-0-cb3f26e78686@gmail.com/t/#u