diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-04-10 10:38:40 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-04-10 10:38:40 +0200 |
commit | 0d789c5a3b66e26a9a354ecce85a47836a242e97 (patch) | |
tree | 213d36ddbe5901ae8de2d22de2df193c87cf9fe0 /passes/techmap/abc9_exe.cc | |
parent | 7c06cb615745fce4490c1d5b9dcf48d40fa00445 (diff) | |
download | yosys-0d789c5a3b66e26a9a354ecce85a47836a242e97.tar.gz yosys-0d789c5a3b66e26a9a354ecce85a47836a242e97.tar.bz2 yosys-0d789c5a3b66e26a9a354ecce85a47836a242e97.zip |
Support custom PROGRAM_PREFIX
Diffstat (limited to 'passes/techmap/abc9_exe.cc')
-rw-r--r-- | passes/techmap/abc9_exe.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/passes/techmap/abc9_exe.cc b/passes/techmap/abc9_exe.cc index 898285c69..303b04402 100644 --- a/passes/techmap/abc9_exe.cc +++ b/passes/techmap/abc9_exe.cc @@ -293,7 +293,7 @@ struct Abc9ExePass : public Pass { #ifdef ABCEXTERNAL log(" use the specified command instead of \"" ABCEXTERNAL "\" to execute ABC.\n"); #else - log(" use the specified command instead of \"<yosys-bindir>/yosys-abc\" to execute ABC.\n"); + log(" use the specified command instead of \"<yosys-bindir>/%syosys-abc\" to execute ABC.\n", proc_program_prefix().c_str()); #endif log(" This can e.g. be used to call a specific version of ABC or a wrapper.\n"); log("\n"); @@ -367,7 +367,7 @@ struct Abc9ExePass : public Pass { #ifdef ABCEXTERNAL std::string exe_file = ABCEXTERNAL; #else - std::string exe_file = proc_self_dirname() + "yosys-abc"; + std::string exe_file = proc_self_dirname() + proc_program_prefix()+ "yosys-abc"; #endif std::string script_file, clk_str, box_file, lut_file; std::string delay_target, lutin_shared = "-S 1", wire_delay; @@ -383,8 +383,8 @@ struct Abc9ExePass : public Pass { #ifdef _WIN32 #ifndef ABCEXTERNAL - if (!check_file_exists(exe_file + ".exe") && check_file_exists(proc_self_dirname() + "..\\yosys-abc.exe")) - exe_file = proc_self_dirname() + "..\\yosys-abc"; + if (!check_file_exists(exe_file + ".exe") && check_file_exists(proc_self_dirname() + "..\\" + proc_program_prefix() + "yosys-abc.exe")) + exe_file = proc_self_dirname() + "..\\" + proc_program_prefix() + "yosys-abc"; #endif #endif |