diff --git a/libraries/chain/webassembly/runtimes/eos-vm.cpp b/libraries/chain/webassembly/runtimes/eos-vm.cpp index 033cf978a3..037162beda 100644 --- a/libraries/chain/webassembly/runtimes/eos-vm.cpp +++ b/libraries/chain/webassembly/runtimes/eos-vm.cpp @@ -240,11 +240,12 @@ std::unique_ptr eos_vm_runtime::instan apply_options options = { .max_pages = 65536, .max_call_depth = 0 }; std::unique_ptr bkend = nullptr; - if constexpr (std::is_same_v) { +#ifdef EOSIO_EOS_VM_JIT_RUNTIME_ENABLED + if constexpr (std::is_same_v) bkend = std::make_unique(code, code_size, nullptr, options, true); // true -- JIT uses single parsing - } else { + else +#endif bkend = std::make_unique(code, code_size, nullptr, options, false); // false -- Interpreter uses 2-passes parsing - } eos_vm_host_functions_t::resolve(bkend->get_module()); return std::make_unique>(this, std::move(bkend)); } catch(eosio::vm::exception& e) {