aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2025-09-09 18:14:20 +0000
committerNathan Chancellor <nathan@kernel.org>2026-02-03 15:29:17 -0700
commitf2445d6f264c64e90b5094d4e8ed33f30cfb7fc4 (patch)
treefaeaff7303a381c2a360757570dedf33c0d79532
parent1f77593d304e734890bc66bcb2b723c181c698f5 (diff)
downloadlinux-kbuild-next.tar.gz
rust: kconfig: Don't require RUST_IS_AVAILABLE for rustc-optionHEADkbuild-next
The final version of this macro does not fail in the absence of an invokable `$(RUSTC)`, so we don't need to be careful not to invoke it. Link: https://lore.kernel.org/all/CAGSQo01mQfcU1EiW53be1hcts0c1p-HQAab_HBk6VcVmhq3n2Q@mail.gmail.com/ Signed-off-by: Matthew Maurer <mmaurer@google.com> Link: https://patch.msgid.link/20250909-docrem-v1-1-dcc69059a5cb@google.com Signed-off-by: Nathan Chancellor <nathan@kernel.org>
-rw-r--r--scripts/Kconfig.include2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/Kconfig.include b/scripts/Kconfig.include
index d42042b6c9e243..fc10671c297cf3 100644
--- a/scripts/Kconfig.include
+++ b/scripts/Kconfig.include
@@ -73,8 +73,6 @@ rustc-llvm-version := $(shell,$(srctree)/scripts/rustc-llvm-version.sh $(RUSTC))
# $(rustc-option,<flag>)
# Return y if the Rust compiler supports <flag>, n otherwise
-# Calls to this should be guarded so that they are not evaluated if
-# CONFIG_RUST_IS_AVAILABLE is not set.
# If you are testing for unstable features, consider testing RUSTC_VERSION
# instead, as features may have different completeness while available.
rustc-option = $(success,trap "rm -rf .tmp_$$" EXIT; mkdir .tmp_$$; $(RUSTC) $(1) --crate-type=rlib /dev/null --out-dir=.tmp_$$ -o .tmp_$$/tmp.rlib)