Skip to content

Commit 38b1a05

Browse files
committed
Add good error message if make rustavailable fails
Hinting what the most common reasons might be
1 parent 4d70cb7 commit 38b1a05

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

PKGBUILD

+9-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,15 @@ prepare() {
7878
done
7979

8080
echo "Verifying that Rust support is available"
81-
make LLVM=1 rustavailable
81+
make LLVM=1 rustavailable || printf '%s\n' \
82+
'Checking for rust support failed!' \
83+
'Make sure that either:' \
84+
' rust and rust-src are installed' \
85+
'or' \
86+
' rustup is installed, and you have run:' \
87+
' "rustup component add rust-src"' \
88+
' and e.g. "rustup default stable"'; \
89+
exit 1
8290

8391
echo "Setting config..."
8492
cp ../config .config

0 commit comments

Comments
 (0)