diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-06-21 10:13:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-21 10:13:51 +0200 |
commit | c9949dba9994aa8289333657a52ef892c6e769d0 (patch) | |
tree | 439a4aadcdec00f8f764608514284460964ab09e | |
parent | 78e7a6f6f25c57ba560613f978ef8d9281fb615a (diff) | |
parent | 8767ec3fbdc0986854107de9cf178953ef09f1db (diff) | |
download | yosys-c9949dba9994aa8289333657a52ef892c6e769d0.tar.gz yosys-c9949dba9994aa8289333657a52ef892c6e769d0.tar.bz2 yosys-c9949dba9994aa8289333657a52ef892c6e769d0.zip |
Merge pull request #1117 from bwidawsk/more-home
Add a few more filename rewrites
-rw-r--r-- | kernel/register.cc | 1 | ||||
-rw-r--r-- | passes/sat/sat.cc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/kernel/register.cc b/kernel/register.cc index 71eb6b187..26da96b95 100644 --- a/kernel/register.cc +++ b/kernel/register.cc @@ -545,6 +545,7 @@ void Backend::extra_args(std::ostream *&f, std::string &filename, std::vector<st } filename = arg; + rewrite_filename(filename); std::ofstream *ff = new std::ofstream; ff->open(filename.c_str(), std::ofstream::trunc); yosys_output_files.insert(filename); diff --git a/passes/sat/sat.cc b/passes/sat/sat.cc index cbba738f0..e4654d835 100644 --- a/passes/sat/sat.cc +++ b/passes/sat/sat.cc @@ -659,6 +659,7 @@ struct SatHelper void dump_model_to_vcd(std::string vcd_file_name) { + rewrite_filename(vcd_file_name); FILE *f = fopen(vcd_file_name.c_str(), "w"); if (!f) log_cmd_error("Can't open output file `%s' for writing: %s\n", vcd_file_name.c_str(), strerror(errno)); @@ -761,6 +762,7 @@ struct SatHelper void dump_model_to_json(std::string json_file_name) { + rewrite_filename(json_file_name); FILE *f = fopen(json_file_name.c_str(), "w"); if (!f) log_cmd_error("Can't open output file `%s' for writing: %s\n", json_file_name.c_str(), strerror(errno)); @@ -1505,6 +1507,7 @@ struct SatPass : public Pass { { if (!cnf_file_name.empty()) { + rewrite_filename(cnf_file_name); FILE *f = fopen(cnf_file_name.c_str(), "w"); if (!f) log_cmd_error("Can't open output file `%s' for writing: %s\n", cnf_file_name.c_str(), strerror(errno)); @@ -1608,6 +1611,7 @@ struct SatPass : public Pass { if (!cnf_file_name.empty()) { + rewrite_filename(cnf_file_name); FILE *f = fopen(cnf_file_name.c_str(), "w"); if (!f) log_cmd_error("Can't open output file `%s' for writing: %s\n", cnf_file_name.c_str(), strerror(errno)); |