diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-10-17 19:58:45 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-10-17 19:58:45 +0800 |
commit | 0b3264de22a5eb390d4389e85d362d4db8f6e11e (patch) | |
tree | 6cc6f0715cc5f4188d374e45630263958fc61aaf /vm.cpp | |
parent | 8c871d0f9a28fd09c38ef67b675cf64e348150f9 (diff) | |
download | dexon-solidity-0b3264de22a5eb390d4389e85d362d4db8f6e11e.tar dexon-solidity-0b3264de22a5eb390d4389e85d362d4db8f6e11e.tar.gz dexon-solidity-0b3264de22a5eb390d4389e85d362d4db8f6e11e.tar.bz2 dexon-solidity-0b3264de22a5eb390d4389e85d362d4db8f6e11e.tar.lz dexon-solidity-0b3264de22a5eb390d4389e85d362d4db8f6e11e.tar.xz dexon-solidity-0b3264de22a5eb390d4389e85d362d4db8f6e11e.tar.zst dexon-solidity-0b3264de22a5eb390d4389e85d362d4db8f6e11e.zip |
Turn on JIT testing with "--jit" command line parameter
Diffstat (limited to 'vm.cpp')
-rw-r--r-- | vm.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |