From 625ff7b9cdcd725126e3a33fb4cc3db477a5d578 Mon Sep 17 00:00:00 2001 From: phsauter Date: Tue, 12 Nov 2024 00:04:23 +0100 Subject: [PATCH] abc: always write tmp files to TMPDIR It is still possible to have it in CWD if TMPDIR is set to CWD. The way it was is not ideal for logging purposes of large projects, as this can create huge amounts of data best stored on some scratch disk instead of the main drive. --- passes/techmap/abc.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index 767491562a3..a032680cd1a 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -728,10 +728,7 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin po_map.clear(); std::string tempdir_name; - if (cleanup) - tempdir_name = get_base_tmpdir() + "/"; - else - tempdir_name = "_tmp_"; + tempdir_name = get_base_tmpdir() + "/"; tempdir_name += proc_program_prefix() + "yosys-abc-XXXXXX"; tempdir_name = make_temp_dir(tempdir_name); log_header(design, "Extracting gate netlist of module `%s' to `%s/%s'..\n",