Add libstd support to Rust BPF (bp #5788) (#5791)

This commit is contained in:
Jack May
2019-09-04 19:02:02 -07:00
committed by GitHub
parent 9d0ed84caa
commit 1e10c43abb
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