Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: kconfig: Don't require RUST_IS_AVAILABLE for rustc-option

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>

authored by

Matthew Maurer and committed by
Nathan Chancellor
f2445d6f 1f77593d

-2
-2
scripts/Kconfig.include
··· 73 73 74 74 # $(rustc-option,<flag>) 75 75 # Return y if the Rust compiler supports <flag>, n otherwise 76 - # Calls to this should be guarded so that they are not evaluated if 77 - # CONFIG_RUST_IS_AVAILABLE is not set. 78 76 # If you are testing for unstable features, consider testing RUSTC_VERSION 79 77 # instead, as features may have different completeness while available. 80 78 rustc-option = $(success,trap "rm -rf .tmp_$$" EXIT; mkdir .tmp_$$; $(RUSTC) $(1) --crate-type=rlib /dev/null --out-dir=.tmp_$$ -o .tmp_$$/tmp.rlib)