Re: [PATCH 04/18] rust: kbuild: add host library support
From: Alice Ryhl
Date: Mon Nov 10 2025 - 05:45:05 EST
On Mon, Nov 10, 2025 at 10:50:09AM +0100, Miguel Ojeda wrote:
> Add the a host library rule that produces `.rlib` files to be used by the
> `macros` crate.
>
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
We currently have two kinds of build rules:
* cmd_host-rust used for host binaries such as generate_rust_target
* cmd_rustc_procmacro used for proc macros
This is a library for the second case, not the first case, so it may
make more sense to name this rule procmacrolibrary?
Note that HOSTRUSTFLAGS is passed to only the first category, but this
naming makes it sound like it should be passed to this new build rule,
but I don't think it should be since it is not passed to proc macros.
Alice