diff --git a/libevm/VMFace.cpp b/libevm/VMFace.cpp index 2553f3004..03f228ad0 100644 --- a/libevm/VMFace.cpp +++ b/libevm/VMFace.cpp @@ -24,7 +24,12 @@ using namespace dev::eth; std::unique_ptr VMFace::create(VMFace::Kind _kind, u256 _gas) { - std::unique_ptr vm(_kind == Kind::JIT ? static_cast(new jit::VM) : new VM); + std::unique_ptr vm; +#if ETH_JIT + vm.reset(_kind == Kind::JIT ? static_cast(new jit::VM) : new VM); +#else + vm.reset(new VM); +#endif vm->reset(_gas); return vm; }