Disable JIT compiler on unsupported platforms (#21215)
This commit is contained in:
@ -9,6 +9,12 @@ macro_rules! to_builtin {
|
||||
|
||||
/// Builtin programs that are always available
|
||||
fn genesis_builtins(bpf_jit: bool) -> Vec<Builtin> {
|
||||
// Currently JIT is not supported on the BPF VM:
|
||||
// !x86_64: https://github.com/qmonnet/rbpf/issues/48
|
||||
// Windows: https://github.com/solana-labs/rbpf/issues/217
|
||||
#[cfg(any(not(target_arch = "x86_64"), target_family = "windows"))]
|
||||
let bpf_jit = false;
|
||||
|
||||
vec![
|
||||
to_builtin!(solana_bpf_loader_deprecated_program!()),
|
||||
if bpf_jit {
|
||||
|
Reference in New Issue
Block a user