Skip to content

Commit 11c0cf1

Browse files
committed
rust: run rust-is-available on build
This should make the warnings more visible without having to run `rustavailable` manually. If it turns out to be too annoying, we can remove it later on. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 1f218ec commit 11c0cf1

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,7 @@ prepare0: archprepare
12691269
$(Q)$(MAKE) $(build)=scripts/mod
12701270
$(Q)$(MAKE) $(build)=.
12711271
ifdef CONFIG_RUST
1272+
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust-is-available.sh -v
12721273
$(Q)$(MAKE) $(build)=rust
12731274
endif
12741275

@@ -1786,7 +1787,7 @@ $(DOC_TARGETS):
17861787
# "Is Rust available?" target
17871788
PHONY += rustavailable
17881789
rustavailable:
1789-
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust-is-available.sh -v
1790+
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust-is-available.sh -v && echo >&2 "Rust is available!"
17901791

17911792
# Documentation target
17921793
#

scripts/rust-is-available.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,3 @@ if [ ! -e "$rustc_src_core" ]; then
157157
fi
158158
exit 1
159159
fi
160-
161-
# Success!
162-
if [ "$1" = -v ]; then
163-
echo >&2 "Rust is available!"
164-
fi

0 commit comments

Comments
 (0)