Skip to content

Commit f20a9fe

Browse files
committed
Allow rust and rust-src from the repos
By not explicitly depending on rustup, users can also install rust and rust-src from the repos. If rustup is installed, we use to make sure that rust-src is installed.
1 parent 12da70b commit f20a9fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

PKGBUILD

+6-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ makedepends=(
1717
pahole
1818
perl
1919
python
20-
rustup
20+
rust
21+
rust-src
2122
rust-bindgen
2223
tar
2324
xz
@@ -78,8 +79,10 @@ prepare() {
7879
patch -Np1 < "../$src"
7980
done
8081

81-
echo "Installing rust-src"
82-
rustup component add rust-src
82+
if rustup --help >/dev/null 2>&1; then
83+
echo "Installing rust-src"
84+
rustup component add rust-src
85+
fi
8386

8487
echo "Verifying that Rust support is available"
8588
make LLVM=1 rustavailable

0 commit comments

Comments
 (0)