mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-01-11 23:53:21 +00:00
himbaechel: fix parsing vopt memory issue (#1614)
This commit is contained in:
parent
12342a60e6
commit
f5374d6de4
@ -86,13 +86,9 @@ void Arch::parse_vopt()
|
|||||||
auto vopt_desc = uarch->getUArchOptions();
|
auto vopt_desc = uarch->getUArchOptions();
|
||||||
vopt_desc.add_options()("help,h", "show help");
|
vopt_desc.add_options()("help,h", "show help");
|
||||||
|
|
||||||
std::vector<const char *> argv;
|
|
||||||
for (auto &a : args.vopts)
|
|
||||||
argv.push_back(a.c_str());
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
po::parsed_options parsed =
|
po::parsed_options parsed =
|
||||||
po::command_line_parser((int)argv.size(), argv.data())
|
po::command_line_parser(args.vopts)
|
||||||
.style(po::command_line_style::default_style ^ po::command_line_style::allow_guessing)
|
.style(po::command_line_style::default_style ^ po::command_line_style::allow_guessing)
|
||||||
.options(vopt_desc)
|
.options(vopt_desc)
|
||||||
.run();
|
.run();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user