Add libstd support to Rust BPF (#5788)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user