Re: [PATCH 2/3] kbuild: rust: apply `CONFIG_WERROR` to all Rust targets

From: Masahiro Yamada
Date: Wed May 22 2024 - 07:59:55 EST


On Wed, May 22, 2024 at 7:52 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> On Wed, May 22, 2024 at 12:14 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
> >
> > What does "everything else" mean exactly?
>
> Everything but the host programs. Or as many targets as possible, if
> you think there are other cases that we should avoid.


You can do this if rebuilding makes sense
when any CONFIG option is changed.



> > Why is the .config required for generating documentation?
>
> `rustdoc` sees the code in a similar way as the compiler (it uses
> parts of the compiler); in particular, it processes conditional
> compilation like the compiler. So we need a given configuration to
> generate it.

Surprising.

It potentially generates different documentations
depending on the .config file.



--
Best Regards
Masahiro Yamada