--vm command line option replacing --jit.

This commit is contained in:
Paweł Bylica 2015-07-03 14:04:04 +02:00
parent 7ce128e322
commit 953e392ad2

View File

@ -728,7 +728,7 @@ Options::Options()
for (auto i = 0; i < argc; ++i) for (auto i = 0; i < argc; ++i)
{ {
auto arg = std::string{argv[i]}; auto arg = std::string{argv[i]};
if (arg == "--jit") if (arg == "--jit" || arg == "--vm=jit") // TODO: Remove deprecated option "--jit"
eth::VMFactory::setKind(eth::VMKind::JIT); eth::VMFactory::setKind(eth::VMKind::JIT);
else if (arg == "--vm=smart") else if (arg == "--vm=smart")
eth::VMFactory::setKind(eth::VMKind::Smart); eth::VMFactory::setKind(eth::VMKind::Smart);