Re: [PATCH 18/18] rust: syn: enable support in kbuild
From: Alice Ryhl
Date: Mon Nov 10 2025 - 06:50:06 EST
On Mon, Nov 10, 2025 at 10:50:23AM +0100, Miguel Ojeda wrote:
> With all the new files in place and ready from the new crate, enable
> the support for it in the build system.
>
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> quiet_cmd_rustc_procmacro = $(RUSTC_OR_CLIPPY_QUIET) P $@
> cmd_rustc_procmacro = \
> $(RUSTC_OR_CLIPPY) $(rust_common_flags) $(rustc_target_flags) \
> -Clinker-flavor=gcc -Clinker=$(HOSTCC) \
> -Clink-args='$(call escsq,$(KBUILD_PROCMACROLDFLAGS))' \
> --emit=dep-info=$(depfile) --emit=link=$@ --extern proc_macro \
> - --crate-type proc-macro \
> + --crate-type proc-macro -L$(objtree)/$(obj) \
> --crate-name $(patsubst lib%.$(libmacros_extension),%,$(notdir $@)) \
> @$(objtree)/include/generated/rustc_cfg $<
This change seems unrelated?
Alice