Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Add --evmc program option #4771

Merged
merged 4 commits into from
Jan 16, 2018
Merged

Add --evmc program option #4771

merged 4 commits into from
Jan 16, 2018

Conversation

chfast
Copy link
Member

@chfast chfast commented Jan 15, 2018

This option expects value like this --evmc name=value. The option is passed then to an EVM-C instance.

@chfast chfast requested review from winsvega and pirapira January 15, 2018 16:14
};

auto vmOpts = vmProgramOptions();
po::parsed_options parsed = po::command_line_parser(argc, argv)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do I get back parsed vm option from Options::get() ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't. This is only to handle the VM options in single place (VMFactory.cpp). I don't care about the rest of the options. There was a PR introducing program_options in testeth, why is it not merged yet?

Copy link
Contributor

@winsvega winsvega Jan 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it was in gihub issue

/// The additional parser for EVM-C options. The options should look like
/// `--evmc name=value` or `--evmc=name=value`. The boost pass the strings
/// of `name=value` here. This function splits the name and value or reports
/// the syntax error if the `=` character is missing.
Copy link
Member

@axic axic Jan 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to pass multiple keys? --evmc debug=true --evmc tracing=true ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@axic axic mentioned this pull request Jan 15, 2018
44 tasks
@codecov-io
Copy link

codecov-io commented Jan 15, 2018

Codecov Report

Merging #4771 into develop will increase coverage by 0.17%.
The diff coverage is 70.73%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4771      +/-   ##
===========================================
+ Coverage    60.61%   60.79%   +0.17%     
===========================================
  Files          347      347              
  Lines        27290    27333      +43     
  Branches      2847     2848       +1     
===========================================
+ Hits         16543    16617      +74     
+ Misses        9750     9728      -22     
+ Partials       997      988       -9

Copy link
Member

@pirapira pirapira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@chfast chfast merged commit dd1f9e9 into develop Jan 16, 2018
@chfast chfast deleted the evmc-program-options branch January 16, 2018 14:15
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants