mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-12 17:06:15 +00:00
abc: Allow +/ filenames in the abc command
This commit is contained in:
parent
007f29b9c2
commit
9a64ba3338
1 changed files with 3 additions and 0 deletions
|
@ -1431,17 +1431,20 @@ struct AbcPass : public Pass {
|
||||||
}
|
}
|
||||||
if (arg == "-script" && argidx+1 < args.size()) {
|
if (arg == "-script" && argidx+1 < args.size()) {
|
||||||
script_file = args[++argidx];
|
script_file = args[++argidx];
|
||||||
|
rewrite_filename(script_file);
|
||||||
if (!script_file.empty() && !is_absolute_path(script_file) && script_file[0] != '+')
|
if (!script_file.empty() && !is_absolute_path(script_file) && script_file[0] != '+')
|
||||||
script_file = std::string(pwd) + "/" + script_file;
|
script_file = std::string(pwd) + "/" + script_file;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (arg == "-liberty" && argidx+1 < args.size()) {
|
if (arg == "-liberty" && argidx+1 < args.size()) {
|
||||||
liberty_file = args[++argidx];
|
liberty_file = args[++argidx];
|
||||||
|
rewrite_filename(liberty_file);
|
||||||
if (!liberty_file.empty() && !is_absolute_path(liberty_file))
|
if (!liberty_file.empty() && !is_absolute_path(liberty_file))
|
||||||
liberty_file = std::string(pwd) + "/" + liberty_file;
|
liberty_file = std::string(pwd) + "/" + liberty_file;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (arg == "-constr" && argidx+1 < args.size()) {
|
if (arg == "-constr" && argidx+1 < args.size()) {
|
||||||
|
rewrite_filename(constr_file);
|
||||||
constr_file = args[++argidx];
|
constr_file = args[++argidx];
|
||||||
if (!constr_file.empty() && !is_absolute_path(constr_file))
|
if (!constr_file.empty() && !is_absolute_path(constr_file))
|
||||||
constr_file = std::string(pwd) + "/" + constr_file;
|
constr_file = std::string(pwd) + "/" + constr_file;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue