@ -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;
|
||||
|
Reference in New Issue
Block a user