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

From: Tamir Duberstein
Date: Fri Feb 07 2025 - 13:41:46 EST


On Fri, Feb 7, 2025 at 1:13 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> On Fri, Feb 7, 2025 at 6:22 PM Tamir Duberstein <tamird@xxxxxxxxx> 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@xxxxxxxxx/t/#u