Skip to content

Commit d734422

Browse files
committed
kbuild: rust-analyzer: mark rust_is_available.sh invocation as recursive
When calling the `rust_is_available.sh` script, we need to make the jobserver available to it, as commit ecab411 ("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: 6dc9d9c ("kbuild: rust-analyzer: better error handling") Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Reworded to add a couple more details mentioned in the list. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 02dfd63 commit d734422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@ tags TAGS cscope gtags: FORCE
19631963
# Protocol).
19641964
PHONY += rust-analyzer
19651965
rust-analyzer:
1966-
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust_is_available.sh
1966+
+$(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust_is_available.sh
19671967
$(Q)$(MAKE) $(build)=rust $@
19681968

19691969
# Script to generate missing namespace dependencies

0 commit comments

Comments
 (0)