Bump bpf-tools to version v1.5 (#16331)
The new version of bpf-tools eliminates the separate rust-bpf-sysroot. The Rust standard libraries for the BPF target are built in tree when the compiler is built. The standard libraries code is slightly more optimized and some reduction of compute budget can be expected with this version of bpf-tools.
This commit is contained in:
parent
4b7b402e74
commit
1359bceb5d
|
@ -1236,7 +1236,7 @@ fn assert_instruction_count() {
|
||||||
("multiple_static", 8),
|
("multiple_static", 8),
|
||||||
("noop", 45),
|
("noop", 45),
|
||||||
("relative_call", 10),
|
("relative_call", 10),
|
||||||
("sanity", 176),
|
("sanity", 175),
|
||||||
("sanity++", 177),
|
("sanity++", 177),
|
||||||
("struct_pass", 8),
|
("struct_pass", 8),
|
||||||
("struct_ret", 22),
|
("struct_ret", 22),
|
||||||
|
@ -1245,16 +1245,16 @@ fn assert_instruction_count() {
|
||||||
#[cfg(feature = "bpf_rust")]
|
#[cfg(feature = "bpf_rust")]
|
||||||
{
|
{
|
||||||
programs.extend_from_slice(&[
|
programs.extend_from_slice(&[
|
||||||
("solana_bpf_rust_128bit", 581),
|
("solana_bpf_rust_128bit", 572),
|
||||||
("solana_bpf_rust_alloc", 8941),
|
("solana_bpf_rust_alloc", 8906),
|
||||||
("solana_bpf_rust_dep_crate", 2),
|
("solana_bpf_rust_dep_crate", 2),
|
||||||
("solana_bpf_rust_external_spend", 522),
|
("solana_bpf_rust_external_spend", 498),
|
||||||
("solana_bpf_rust_iter", 724),
|
("solana_bpf_rust_iter", 724),
|
||||||
("solana_bpf_rust_many_args", 237),
|
("solana_bpf_rust_many_args", 237),
|
||||||
("solana_bpf_rust_noop", 496),
|
("solana_bpf_rust_noop", 472),
|
||||||
("solana_bpf_rust_param_passing", 54),
|
("solana_bpf_rust_param_passing", 46),
|
||||||
("solana_bpf_rust_ristretto", 19246),
|
("solana_bpf_rust_ristretto", 19220),
|
||||||
("solana_bpf_rust_sanity", 952),
|
("solana_bpf_rust_sanity", 894),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ if [[ ! -e criterion-$version.md || ! -e criterion ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install Rust-BPF
|
# Install Rust-BPF
|
||||||
version=v1.4
|
version=v1.5
|
||||||
if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
|
if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
|
|
|
@ -260,7 +260,7 @@ fn build_bpf_package(config: &Config, target_directory: &Path, package: &cargo_m
|
||||||
install_if_missing(
|
install_if_missing(
|
||||||
&config,
|
&config,
|
||||||
"bpf-tools",
|
"bpf-tools",
|
||||||
"v1.4",
|
"v1.5",
|
||||||
"https://github.com/solana-labs/bpf-tools/releases/download",
|
"https://github.com/solana-labs/bpf-tools/releases/download",
|
||||||
&PathBuf::from(bpf_tools_filename),
|
&PathBuf::from(bpf_tools_filename),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue