A template for creating Solana BPF programs using the upstream LLVM toolchain.
Set up the custom LLVM and SBPF linker:
cargo run --package xtask -- setupThis will clone and build the modified LLVM BPF backend and SBPF linker.
Create a new project from this template:
cargo generate --git https://github.com/blueshift-gg/solana-upstream-bpf-template.gitBuild your BPF program:
cargo +nightly build-bpfThe compiled program will be at:
target/bpfel-unknown-none/release/libyour_program_name.so
Run tests:
cargo testMIT