diff options
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/Makefile b/rust/Makefile index 2b4a3983bb1e..8dfccf7399d9 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -47,10 +47,12 @@ endif # Avoids running `$(RUSTC)` when it may not be available. ifdef CONFIG_RUST -libmacros_name := $(shell MAKEFLAGS= $(RUSTC) --print file-names --crate-name macros --crate-type proc-macro - </dev/null) +procmacro-name = $(shell MAKEFLAGS= $(RUSTC) --print file-names --crate-name $(1) --crate-type proc-macro - </dev/null) + +libmacros_name := $(call procmacro-name,macros) libmacros_extension := $(patsubst libmacros.%,%,$(libmacros_name)) -libpin_init_internal_name := $(shell MAKEFLAGS= $(RUSTC) --print file-names --crate-name pin_init_internal --crate-type proc-macro - </dev/null) +libpin_init_internal_name := $(call procmacro-name,pin_init_internal) always-$(CONFIG_RUST) += $(libmacros_name) $(libpin_init_internal_name) |
