@@ -22,6 +22,10 @@ set -e
|
||||
# Ensure the sdk is installed
|
||||
"$bpf_sdk"/scripts/install.sh
|
||||
|
||||
# Use the SDK's version of llvm to build the compiler-builtins for BPF
|
||||
export CC="$bpf_sdk/llvm-native/bin/clang"
|
||||
export AR="$bpf_sdk/llvm-native/bin/llvm-ar"
|
||||
# Use the SDK's version of Rust to build for BPF
|
||||
export RUSTUP_TOOLCHAIN=bpf
|
||||
export RUSTFLAGS="
|
||||
--emit=llvm-ir \
|
||||
|
@@ -3,6 +3,10 @@
|
||||
#![no_std]
|
||||
#![feature(allocator_api)]
|
||||
#![feature(alloc_error_handler)]
|
||||
#![feature(panic_info_message)]
|
||||
#![feature(compiler_builtins_lib)]
|
||||
|
||||
extern crate compiler_builtins;
|
||||
|
||||
pub mod alloc;
|
||||
pub mod entrypoint;
|
||||
|
@@ -48,7 +48,7 @@ if [[ ! -r criterion-$machine-$version.md ]]; then
|
||||
fi
|
||||
|
||||
# Install LLVM
|
||||
version=v0.0.9
|
||||
version=v0.0.10
|
||||
if [[ ! -f llvm-native-$machine-$version.md ]]; then
|
||||
(
|
||||
filename=solana-llvm-$machine.tar.bz2
|
||||
@@ -108,7 +108,7 @@ if [[ ! -f rust-bpf-$machine-$version.md ]]; then
|
||||
fi
|
||||
|
||||
# Install Rust-BPF Sysroot sources
|
||||
version=v0.2
|
||||
version=v0.3
|
||||
if [[ ! -f rust-bpf-sysroot-$version.md ]]; then
|
||||
(
|
||||
set -ex
|
||||
|
Reference in New Issue
Block a user