aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorRobert Ou <rqou@robertou.com>2017-08-10 21:10:07 -0700
committerAndrew Zonenberg <azonenberg@drawersteak.com>2017-08-14 12:11:11 -0700
commit9a64ba3338280037215388ca3b195ce1a6afb5b3 (patch)
treebdd29f0aed83445394cd0a0389f2953c9271acdf /passes
parent007f29b9c221ab1a8931de863517d6990218970d (diff)
downloadyosys-9a64ba3338280037215388ca3b195ce1a6afb5b3.tar.gz
yosys-9a64ba3338280037215388ca3b195ce1a6afb5b3.tar.bz2
yosys-9a64ba3338280037215388ca3b195ce1a6afb5b3.zip
abc: Allow +/ filenames in the abc command
Diffstat (limited to 'passes')
-rw-r--r--passes/techmap/abc.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc
index d0f772be4..3d943e682 100644
--- a/passes/techmap/abc.cc
+++ b/passes/techmap/abc.cc
@@ -1431,17 +1431,20 @@ struct AbcPass : public Pass {
}
if (arg == "-script" && argidx+1 < args.size()) {
script_file = args[++argidx];
+ rewrite_filename(script_file);
if (!script_file.empty() && !is_absolute_path(script_file) && script_file[0] != '+')
script_file = std::string(pwd) + "/" + script_file;
continue;
}
if (arg == "-liberty" && argidx+1 < args.size()) {
liberty_file = args[++argidx];
+ rewrite_filename(liberty_file);
if (!liberty_file.empty() && !is_absolute_path(liberty_file))
liberty_file = std::string(pwd) + "/" + liberty_file;
continue;
}
if (arg == "-constr" && argidx+1 < args.size()) {
+ rewrite_filename(constr_file);
constr_file = args[++argidx];
if (!constr_file.empty() && !is_absolute_path(constr_file))
constr_file = std::string(pwd) + "/" + constr_file;