aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaire Xenia Wolf <claire@symbioticeda.com>2020-10-19 13:40:57 +0200
committerClaire Xenia Wolf <claire@symbioticeda.com>2020-10-19 13:40:57 +0200
commitacc9d0575b64b69a8ae92c8554aaaca3649e1ea0 (patch)
tree6cc4f62b13768c2fc224c482877dc4baa09892d3
parentac0bd2ffc4a29eb0a07ccad898f20842514d4825 (diff)
downloadyosys-acc9d0575b64b69a8ae92c8554aaaca3649e1ea0.tar.gz
yosys-acc9d0575b64b69a8ae92c8554aaaca3649e1ea0.tar.bz2
yosys-acc9d0575b64b69a8ae92c8554aaaca3649e1ea0.zip
Fix argument handling in connect_rpc
Signed-off-by: Claire Xenia Wolf <claire@symbioticeda.com>
-rw-r--r--frontends/rpc/rpc_frontend.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/rpc/rpc_frontend.cc b/frontends/rpc/rpc_frontend.cc
index 5a40001cb..c12640ef0 100644
--- a/frontends/rpc/rpc_frontend.cc
+++ b/frontends/rpc/rpc_frontend.cc
@@ -401,10 +401,11 @@ struct RpcFrontend : public Pass {
std::string arg = args[argidx];
if (arg == "-exec" && argidx+1 < args.size()) {
command.insert(command.begin(), args.begin() + argidx + 1, args.end());
+ argidx = args.size()-1;
continue;
}
if (arg == "-path" && argidx+1 < args.size()) {
- path = args[argidx+1];
+ path = args[++argidx];
continue;
}
break;