configure rust-bpf toolchain for each tree (#15620)
This commit is contained in:
parent
acf5e4e219
commit
4789a13a6e
|
@ -142,13 +142,6 @@ if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
|
||||||
solana-bpf-tools-$machine.tar.bz2 \
|
solana-bpf-tools-$machine.tar.bz2 \
|
||||||
bpf-tools"
|
bpf-tools"
|
||||||
get $version bpf-tools "$job"
|
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=$?
|
exitcode=$?
|
||||||
if [[ $exitcode -ne 0 ]]; then
|
if [[ $exitcode -ne 0 ]]; then
|
||||||
|
@ -156,6 +149,12 @@ if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
|
||||||
fi
|
fi
|
||||||
touch bpf-tools-$version.md
|
touch bpf-tools-$version.md
|
||||||
fi
|
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
|
# Install Rust-BPF Sysroot sources
|
||||||
version=v1.0
|
version=v1.0
|
||||||
|
|
Loading…
Reference in New Issue