Print the rust version when building bpf programs (#16181) (#16182)

(cherry picked from commit abada56ba1)

# Conflicts:
#	sdk/bpf/scripts/install.sh

Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
mergify[bot]
2021-03-29 20:00:23 +08:00
committed by GitHub
parent ffe2f96a58
commit cc7342a8ef

View File

@ -192,7 +192,18 @@ if [[ ! -e rust-bpf-sysroot-$version.md || ! -e rust-bpf-sysroot ]]; then
if [[ $exitcode -ne 0 ]]; then
exit 1
fi
<<<<<<< HEAD
touch rust-bpf-sysroot-$version.md
=======
touch bpf-tools-$version.md
set -ex
./bpf-tools/rust/bin/rustc --version
./bpf-tools/rust/bin/rustc --print sysroot
set +e
rustup toolchain uninstall bpf
set -e
rustup toolchain link bpf bpf-tools/rust
>>>>>>> abada56ba... Print the rust version when building bpf programs (#16181)
fi
exit 0