Bump bpf-tools version to 1.12
This commit is contained in:
parent
c045f1dfb5
commit
e98a7504f2
|
@ -5,6 +5,8 @@
|
||||||
*/
|
*/
|
||||||
#include <solana_sdk.h>
|
#include <solana_sdk.h>
|
||||||
|
|
||||||
|
extern double log2(double arg);
|
||||||
|
|
||||||
extern uint64_t entrypoint(const uint8_t *input) {
|
extern uint64_t entrypoint(const uint8_t *input) {
|
||||||
SolAccountInfo ka[1];
|
SolAccountInfo ka[1];
|
||||||
SolParameters params = (SolParameters) { .ka = ka };
|
SolParameters params = (SolParameters) { .ka = ka };
|
||||||
|
@ -23,5 +25,9 @@ extern uint64_t entrypoint(const uint8_t *input) {
|
||||||
value /= -2.0;
|
value /= -2.0;
|
||||||
sol_assert(value < 0.0);
|
sol_assert(value < 0.0);
|
||||||
|
|
||||||
|
/* test that standard math functions are available */
|
||||||
|
value = *data + 1.0;
|
||||||
|
sol_assert(log2(value) == 1.0);
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ if [[ ! -e criterion-$version.md || ! -e criterion ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install Rust-BPF
|
# Install Rust-BPF
|
||||||
version=v1.11
|
version=v1.12
|
||||||
if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
|
if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
|
|
|
@ -414,7 +414,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.11",
|
"v1.12",
|
||||||
"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