mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 21:33:40 +00:00
Added support for "file names with blanks"
This commit is contained in:
parent
aa0ab975b9
commit
21a1cc1b60
7 changed files with 43 additions and 33 deletions
|
@ -607,6 +607,7 @@ struct ExtractPass : public Pass {
|
|||
else
|
||||
{
|
||||
std::ifstream f;
|
||||
rewrite_filename(filename);
|
||||
f.open(filename.c_str());
|
||||
if (f.fail()) {
|
||||
delete map;
|
||||
|
@ -746,6 +747,7 @@ struct ExtractPass : public Pass {
|
|||
}
|
||||
|
||||
std::ofstream f;
|
||||
rewrite_filename(mine_outfile);
|
||||
f.open(mine_outfile.c_str(), std::ofstream::trunc);
|
||||
if (f.fail())
|
||||
log_error("Can't open output file `%s'.\n", mine_outfile.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue