Add libstd support to Rust BPF (#5788)

This commit is contained in:
Jack May
2019-09-04 16:00:11 -07:00
committed by GitHub
parent ceaf4781b0
commit 5fb2d7a98f
46 changed files with 62 additions and 271 deletions

View File

@ -116,7 +116,7 @@ if [[ ! -f rust-bpf-$machine-$version.md ]]; then
fi
# Install Rust-BPF Sysroot sources
version=v0.8
version=v0.9
if [[ ! -f rust-bpf-sysroot-$version.md ]]; then
(
set -ex
@ -134,4 +134,23 @@ if [[ ! -f rust-bpf-sysroot-$version.md ]]; then
fi
fi
# Install custom Hashbrown crate needed by Rust-BPF Sysroot
version=v0.1
if [[ ! -f hashbrown-$version.md ]]; then
(
set -ex
rm -rf hashbrown*
rm -rf xargo
cmd="git clone --recursive --single-branch --branch $version https://github.com/solana-labs/hashbrown.git"
$cmd
echo "$cmd" > hashbrown-$version.md
)
exitcode=$?
if [[ $exitcode -ne 0 ]]; then
rm -rf hashbrown
exit 1
fi
fi
exit 0