solana-test-validator now uses the BPF JIT by default, --no-bpf-jit to disable

This commit is contained in:
Michael Vines
2021-02-09 11:02:04 -08:00
committed by mergify[bot]
parent 8424fe2c12
commit f063f02c41
2 changed files with 15 additions and 0 deletions

View File

@@ -140,6 +140,12 @@ fn main() {
If the ledger already exists then this parameter is silently ignored",
),
)
.arg(
Arg::with_name("no_bpf_jit")
.long("no-bpf-jit")
.takes_value(false)
.help("Disable the just-in-time compiler and instead use the interpreter for BPF"),
)
.arg(
Arg::with_name("clone_account")
.long("clone")
@@ -203,6 +209,7 @@ fn main() {
IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)),
FAUCET_PORT,
));
let bpf_jit = !matches.is_present("no_bpf_jit");
let mut programs = vec![];
if let Some(values) = matches.values_of("bpf_program") {
@@ -376,6 +383,7 @@ fn main() {
faucet_addr,
..JsonRpcConfig::default()
})
.bpf_jit(bpf_jit)
.rpc_port(rpc_port)
.add_programs_with_path(&programs);