Add llvm feature option to compile for Solana BPF target (#16495)

This commit is contained in:
Dmitri Makarov
2021-04-13 09:20:18 +02:00
committed by GitHub
parent 85eb37fab0
commit db3bca7edd
4 changed files with 5 additions and 3 deletions

View File

@ -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 \