Observe $TMPDIR variable when creating tmp files
authorMohamed A. Bamakhrama <mohamed@alumni.tum.de>
Mon, 23 May 2022 20:21:45 +0000 (22:21 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Fri, 27 May 2022 13:06:53 +0000 (15:06 +0200)
commit1822be8792865e3f6f0765693f93b8e85fcb279f
treecaea45b0b5de568251eeb3b71e6a7db149a5b9eb
parentf9b6fe521dd9b7064ad7e576ffe779329f447e4f
Observe $TMPDIR variable when creating tmp files

POSIX defines $TMPDIR as containing the pathname of the directory where
programs can create temporary files. On most systems, this variable points to
"/tmp". However, on some systems it can point to a different location.
Without respecting this variable, yosys fails to run on such systems.

Signed-off-by: Mohamed A. Bamakhrama <mohamed@alumni.tum.de>
kernel/fstdata.cc
kernel/yosys.cc
kernel/yosys.h
passes/sat/qbfsat.cc
passes/techmap/abc.cc
passes/techmap/abc9.cc