Add llvm feature option to compile for Solana BPF target (#16495)
This commit is contained in:
@ -44,6 +44,7 @@ BPF_C_FLAGS := \
|
||||
$(C_FLAGS) \
|
||||
-target bpf \
|
||||
-fPIC \
|
||||
-march=bpfel+solana
|
||||
|
||||
BPF_CXX_FLAGS := \
|
||||
$(CXX_FLAGS) \
|
||||
@ -53,6 +54,7 @@ BPF_CXX_FLAGS := \
|
||||
-fno-exceptions \
|
||||
-fno-asynchronous-unwind-tables \
|
||||
-fno-unwind-tables \
|
||||
-march=bpfel+solana
|
||||
|
||||
BPF_LLD_FLAGS := \
|
||||
-z notext \
|
||||
|
@ -92,7 +92,7 @@ if [[ ! -e criterion-$version.md || ! -e criterion ]]; then
|
||||
fi
|
||||
|
||||
# Install Rust-BPF
|
||||
version=v1.5
|
||||
version=v1.6
|
||||
if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
|
||||
(
|
||||
set -e
|
||||
|
Reference in New Issue
Block a user