aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/abc9.cc
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2022-05-27 16:51:16 +0200
committerGitHub <noreply@github.com>2022-05-27 16:51:16 +0200
commit197c9e04e8778f99f82b1b6bddc9eba3fbf85104 (patch)
treede4c512aa6585c989dcd8a551f969bab0483dfee /passes/techmap/abc9.cc
parentbf78041e8977effbce3a0928bfa22632222e8bbd (diff)
parent08275a1569af7d925ff28ff0288d9779057d27a9 (diff)
downloadyosys-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 'passes/techmap/abc9.cc')
-rw-r--r--passes/techmap/abc9.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc
index fe0802d70..79c994b11 100644
--- a/passes/techmap/abc9.cc
+++ b/passes/techmap/abc9.cc
@@ -404,7 +404,7 @@ struct Abc9Pass : public ScriptPass
if (!active_design->selected_whole_module(mod))
log_error("Can't handle partially selected module %s!\n", log_id(mod));
- std::string tempdir_name = "/tmp/" + proc_program_prefix() + "yosys-abc-XXXXXX";
+ std::string tempdir_name = get_base_tmpdir() + "/" + proc_program_prefix() + "yosys-abc-XXXXXX";
if (!cleanup)
tempdir_name[0] = tempdir_name[4] = '_';
tempdir_name = make_temp_dir(tempdir_name);