mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
commit
e1dabe556b
@ -728,10 +728,20 @@ 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 == "--vm" && i + 1 < argc)
|
||||||
eth::VMFactory::setKind(eth::VMKind::JIT);
|
{
|
||||||
else if (arg == "--vm=smart")
|
string vmKind = argv[++i];
|
||||||
eth::VMFactory::setKind(eth::VMKind::Smart);
|
if (vmKind == "interpreter")
|
||||||
|
VMFactory::setKind(VMKind::Interpreter);
|
||||||
|
else if (vmKind == "jit")
|
||||||
|
VMFactory::setKind(VMKind::JIT);
|
||||||
|
else if (vmKind == "smart")
|
||||||
|
VMFactory::setKind(VMKind::Smart);
|
||||||
|
else
|
||||||
|
cerr << "Unknown VM kind: " << vmKind << endl;
|
||||||
|
}
|
||||||
|
else if (arg == "--jit") // TODO: Remove deprecated option "--jit"
|
||||||
|
VMFactory::setKind(VMKind::JIT);
|
||||||
else if (arg == "--vmtrace")
|
else if (arg == "--vmtrace")
|
||||||
vmtrace = true;
|
vmtrace = true;
|
||||||
else if (arg == "--filltests")
|
else if (arg == "--filltests")
|
||||||
|
Loading…
Reference in New Issue
Block a user