diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2022-08-08 20:30:50 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2022-08-08 20:30:50 +0200 |
commit | f4a1906721507c512050f62080a999c4147d92d6 (patch) | |
tree | 092fb5c922a6b87f5aa72be3b55d8d48142e611a /passes/techmap/abc9_exe.cc | |
parent | 6c65ca4e50cc6712d9293b9630afdf67af89ef61 (diff) | |
download | yosys-f4a1906721507c512050f62080a999c4147d92d6.tar.gz yosys-f4a1906721507c512050f62080a999c4147d92d6.tar.bz2 yosys-f4a1906721507c512050f62080a999c4147d92d6.zip |
support file locations containing spaces
Diffstat (limited to 'passes/techmap/abc9_exe.cc')
-rw-r--r-- | passes/techmap/abc9_exe.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/techmap/abc9_exe.cc b/passes/techmap/abc9_exe.cc index 7dc0a364b..2f46c89f4 100644 --- a/passes/techmap/abc9_exe.cc +++ b/passes/techmap/abc9_exe.cc @@ -175,12 +175,12 @@ void abc9_module(RTLIL::Design *design, std::string script_file, std::string exe if (!lut_costs.empty()) abc9_script += stringf("read_lut %s/lutdefs.txt; ", tempdir_name.c_str()); else if (!lut_file.empty()) - abc9_script += stringf("read_lut %s; ", lut_file.c_str()); + abc9_script += stringf("read_lut \"%s\"; ", lut_file.c_str()); else log_abort(); log_assert(!box_file.empty()); - abc9_script += stringf("read_box %s; ", box_file.c_str()); + abc9_script += stringf("read_box \"%s\"; ", box_file.c_str()); abc9_script += stringf("&read %s/input.xaig; &ps; ", tempdir_name.c_str()); if (!script_file.empty()) { @@ -264,7 +264,7 @@ void abc9_module(RTLIL::Design *design, std::string script_file, std::string exe fclose(f); } - buffer = stringf("%s -s -f %s/abc.script 2>&1", exe_file.c_str(), tempdir_name.c_str()); + buffer = stringf("\"%s\" -s -f %s/abc.script 2>&1", exe_file.c_str(), tempdir_name.c_str()); log("Running ABC command: %s\n", replace_tempdir(buffer, tempdir_name, show_tempdir).c_str()); #ifndef YOSYS_LINK_ABC |