configure rust-bpf toolchain for each tree (#15620)

This commit is contained in:
Jack May 2021-03-02 00:45:28 -08:00 committed by GitHub
parent acf5e4e219
commit 4789a13a6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 7 deletions

View File

@ -142,13 +142,6 @@ if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
solana-bpf-tools-$machine.tar.bz2 \
bpf-tools"
get $version bpf-tools "$job"
set -ex
./bpf-tools/rust/bin/rustc --print sysroot
set +e
rustup toolchain uninstall bpf
set -e
rustup toolchain link bpf bpf-tools/rust
)
exitcode=$?
if [[ $exitcode -ne 0 ]]; then
@ -156,6 +149,12 @@ if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
fi
touch bpf-tools-$version.md
fi
set -ex
./bpf-tools/rust/bin/rustc --print sysroot
set +e
rustup toolchain uninstall bpf
set -e
rustup toolchain link bpf bpf-tools/rust
# Install Rust-BPF Sysroot sources
version=v1.0