Build programs with `--no-default-features --features program` to match solana-sdk
This commit is contained in:
parent
efcf9ff125
commit
52575349dc
|
@ -40,6 +40,6 @@ export XARGO_RUST_SRC="$bpf_sdk/dependencies/rust-bpf-sysroot/src"
|
||||||
export RUST_COMPILER_RT_ROOT="$bpf_sdk/dependencies/rust-bpf-sysroot/src/compiler-rt"
|
export RUST_COMPILER_RT_ROOT="$bpf_sdk/dependencies/rust-bpf-sysroot/src/compiler-rt"
|
||||||
|
|
||||||
cd "$1"
|
cd "$1"
|
||||||
xargo build --target bpfel-unknown-unknown --release
|
xargo build --target bpfel-unknown-unknown --release --no-default-features --features program
|
||||||
|
|
||||||
{ { set +x; } 2>/dev/null; echo Success; }
|
{ { set +x; } 2>/dev/null; echo Success; }
|
||||||
|
|
Loading…
Reference in New Issue