From: N. Engelhardt Date: Mon, 6 Jan 2020 18:10:13 +0000 (+0100) Subject: error if multiple -g options are given for abc X-Git-Tag: working-ls180~884^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcc1c14adc44ae1772dc2c41f577e39063d03144;p=yosys.git error if multiple -g options are given for abc --- diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index 28a1c01b1..581652a41 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -1623,6 +1623,8 @@ struct AbcPass : public Pass { continue; } if (arg == "-g" && argidx+1 < args.size()) { + if (g_arg_from_cmd) + log_cmd_error("Can only use -g once. Please combine."); g_arg = args[++argidx]; g_argidx = argidx; g_arg_from_cmd = true;