]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kbuild: rust-analyzer: mark `rust_is_available.sh` invocation as recursive
authorMiguel Ojeda <ojeda@kernel.org>
Tue, 6 Aug 2024 23:35:59 +0000 (01:35 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 9 Aug 2024 22:05:10 +0000 (00:05 +0200)
When calling the `rust_is_available.sh` script, we need to make the
jobserver available to it, as commit ecab4115c44c ("kbuild: mark `rustc`
(and others) invocations as recursive") explains and did for the others.

Otherwise, we get a warning from `rustc` when calling `make rust-analyzer`
with parallel jobs, e.g. `-j8`. Using several jobs for that target does
not really matter, but developers may call `make` with jobs enabled in
all cases.

Thus fix it.

Fixes: 6dc9d9ca9a72 ("kbuild: rust-analyzer: better error handling")
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20240806233559.246705-1-ojeda@kernel.org
[ Reworded to add a couple more details mentioned in the list. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Makefile

index 8ad55d6e7b60f270f1806aa53376f2b5b9b5f93a..8ed76eb9d438a044227773cb62667c17c809ae8e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1963,7 +1963,7 @@ tags TAGS cscope gtags: FORCE
 # Protocol).
 PHONY += rust-analyzer
 rust-analyzer:
-       $(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust_is_available.sh
+       +$(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust_is_available.sh
        $(Q)$(MAKE) $(build)=rust $@
 
 # Script to generate missing namespace dependencies