diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2022-05-27 16:51:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 16:51:16 +0200 |
commit | 197c9e04e8778f99f82b1b6bddc9eba3fbf85104 (patch) | |
tree | de4c512aa6585c989dcd8a551f969bab0483dfee /kernel/fstdata.cc | |
parent | bf78041e8977effbce3a0928bfa22632222e8bbd (diff) | |
parent | 08275a1569af7d925ff28ff0288d9779057d27a9 (diff) | |
download | yosys-197c9e04e8778f99f82b1b6bddc9eba3fbf85104.tar.gz yosys-197c9e04e8778f99f82b1b6bddc9eba3fbf85104.tar.bz2 yosys-197c9e04e8778f99f82b1b6bddc9eba3fbf85104.zip |
Merge pull request #3333 from mohamed/feature/tmpdir
Observe $TMPDIR variable when creating tmp files
Diffstat (limited to 'kernel/fstdata.cc')
-rw-r--r-- | kernel/fstdata.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc index fea8ee3c3..b2e574b02 100644 --- a/kernel/fstdata.cc +++ b/kernel/fstdata.cc @@ -33,7 +33,7 @@ FstData::FstData(std::string filename) : ctx(nullptr) std::string filename_trim = file_base_name(filename); if (filename_trim.size() > 4 && filename_trim.compare(filename_trim.size()-4, std::string::npos, ".vcd") == 0) { filename_trim.erase(filename_trim.size()-4); - tmp_file = stringf("/tmp/converted_%s.fst", filename_trim.c_str()); + tmp_file = stringf("%s/converted_%s.fst", get_base_tmpdir().c_str(), filename_trim.c_str()); std::string cmd = stringf("vcd2fst %s %s", filename.c_str(), tmp_file.c_str()); log("Exec: %s\n", cmd.c_str()); if (run_command(cmd) != 0) |