summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/Makefile b/rust/Makefile
index ce1853a09d3d..9967f3457d44 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -60,8 +60,10 @@ rustdoc_test_quiet=--test-args -q
rustdoc_test_kernel_quiet=>/dev/null
endif
+cfgs-to-flags = $(patsubst %,--cfg='%',$1)
+
core-cfgs := \
- --cfg no_fp_fmt_parse
+ no_fp_fmt_parse
core-edition := $(if $(call rustc-min-version,108700),2024,2021)
@@ -72,7 +74,7 @@ core-skip_flags := \
core-flags := \
--edition=$(core-edition) \
- $(core-cfgs)
+ $(call cfgs-to-flags,$(core-cfgs))
# `rustdoc` did not save the target modifiers, thus workaround for
# the time being (https://github.com/rust-lang/rust/issues/144521).