diff --git a/ledger/src/builtins.rs b/ledger/src/builtins.rs index 7dab057364e572..ca5ddc6499361d 100644 --- a/ledger/src/builtins.rs +++ b/ledger/src/builtins.rs @@ -9,12 +9,6 @@ macro_rules! to_builtin { /// Builtin programs that are always available fn genesis_builtins(bpf_jit: bool) -> Vec { - // 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 { diff --git a/validator/src/bin/solana-test-validator.rs b/validator/src/bin/solana-test-validator.rs index 0e3ecedb63b76e..faf564629ba10d 100644 --- a/validator/src/bin/solana-test-validator.rs +++ b/validator/src/bin/solana-test-validator.rs @@ -393,6 +393,11 @@ fn main() { IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), faucet_port, )); + // JIT not supported on the BPF VM in Windows currently: https://github.com/solana-labs/rbpf/issues/217 + #[cfg(target_family = "windows")] + let bpf_jit = false; + #[cfg(not(target_family = "windows"))] + let bpf_jit = !matches.is_present("no_bpf_jit"); let mut programs = vec![]; if let Some(values) = matches.values_of("bpf_program") { @@ -552,7 +557,7 @@ fn main() { faucet_addr, ..JsonRpcConfig::default() }) - .bpf_jit(!matches.is_present("no_bpf_jit")) + .bpf_jit(bpf_jit) .rpc_port(rpc_port) .add_programs_with_path(&programs);