diff options
author | whitequark <whitequark@whitequark.org> | 2020-10-31 07:59:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 07:59:44 +0000 |
commit | dfeff65c2b3a0d663c7c2bf9888162af54db2e35 (patch) | |
tree | 5057cc828e2a85fc5771e0019692cdee3c17c63f | |
parent | 166a84bdb8740970326ec76c79d676f30723bbbb (diff) | |
parent | 5c36e7757c4a65c7dc32509534501bda4fb5e35e (diff) | |
download | yosys-dfeff65c2b3a0d663c7c2bf9888162af54db2e35.tar.gz yosys-dfeff65c2b3a0d663c7c2bf9888162af54db2e35.tar.bz2 yosys-dfeff65c2b3a0d663c7c2bf9888162af54db2e35.zip |
Merge pull request #2416 from QuantamHD/master
Adds support for defining abc location at runtime
-rw-r--r-- | passes/techmap/abc.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index ce50e9a5b..66ac6828f 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -1471,7 +1471,12 @@ struct AbcPass : public Pass { po_map.clear(); #ifdef ABCEXTERNAL - std::string exe_file = ABCEXTERNAL; + std::string exe_file; + if (std::getenv("ABC")) { + exe_file = std::getenv("ABC"); + } else { + exe_file = ABCEXTERNAL; + } #else std::string exe_file = proc_self_dirname() + proc_program_prefix() + "yosys-abc"; #endif |