Skip to content

Commit

Permalink
Put files in tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
gussmith23 committed Sep 1, 2023
1 parent 741feff commit c0e7e31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions passes/techmap/lakeroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ USING_YOSYS_NAMESPACE PRIVATE_NAMESPACE_BEGIN

// Who knew getting a named temporary file was so hard in C++? This isn't a
// great solution.
auto verilog_filename = (boost::filesystem::unique_path("%%%%-%%%%-%%%%-%%%%.v").native());
auto out_verilog_filename = (boost::filesystem::unique_path("%%%%-%%%%-%%%%-%%%%.v").native());
auto verilog_filename = (boost::filesystem::temp_directory_path() / boost::filesystem::unique_path("%%%%-%%%%-%%%%-%%%%.v")).native();
auto out_verilog_filename =
(boost::filesystem::temp_directory_path() / boost::filesystem::unique_path("%%%%-%%%%-%%%%-%%%%.v")).native();
std::vector<std::string> write_verilog_args;
write_verilog_args.push_back("write_verilog");
write_verilog_args.push_back(verilog_filename);
Expand Down

0 comments on commit c0e7e31

Please sign in to comment.