Turn on JIT testing with "--jit" command line parameter

This commit is contained in:
Paweł Bylica 2014-10-17 13:58:45 +02:00
parent 8c871d0f9a
commit 0b3264de22

5
vm.cpp
View File

@ -512,7 +512,10 @@ void doTests(json_spirit::mValue& v, bool _fillin)
u256 gas;
try
{
auto useJit = true;
auto argc = boost::unit_test::framework::master_test_suite().argc;
auto argv = boost::unit_test::framework::master_test_suite().argv;
auto useJit = argc >= 2 && std::string(argv[1]) == "--jit";
if (useJit)
{
jit::VM vm(fev.gas);