aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2014-10-17 19:58:45 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2014-10-17 19:58:45 +0800
commit0b3264de22a5eb390d4389e85d362d4db8f6e11e (patch)
tree6cc6f0715cc5f4188d374e45630263958fc61aaf /vm.cpp
parent8c871d0f9a28fd09c38ef67b675cf64e348150f9 (diff)
downloaddexon-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.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/vm.cpp b/vm.cpp
index a7b78524..637ee77e 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -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);