aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap
diff options
context:
space:
mode:
authorCatherine <whitequark@whitequark.org>2022-07-07 08:08:17 +0000
committerCatherine <whitequark@whitequark.org>2022-07-07 08:38:30 +0000
commit502b96fe53e82b5454fbbd032cbf6b13ad2dad6d (patch)
tree725fab2c510b19d0e69f269fdbc91b26cef17aba /passes/techmap
parent43d86f2c26e2950b1b08dd46a324582668bbcf57 (diff)
downloadyosys-502b96fe53e82b5454fbbd032cbf6b13ad2dad6d.tar.gz
yosys-502b96fe53e82b5454fbbd032cbf6b13ad2dad6d.tar.bz2
yosys-502b96fe53e82b5454fbbd032cbf6b13ad2dad6d.zip
Fix external ABC build after commit 0ca0932b5.
Diffstat (limited to 'passes/techmap')
-rw-r--r--passes/techmap/abc.cc6
-rw-r--r--passes/techmap/abc9_exe.cc6
2 files changed, 8 insertions, 4 deletions
diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc
index 61ee99ee7..0b9c327c0 100644
--- a/passes/techmap/abc.cc
+++ b/passes/techmap/abc.cc
@@ -65,7 +65,9 @@
#include "frontends/blif/blifparse.h"
#ifdef YOSYS_LINK_ABC
-extern "C" int Abc_RealMain(int argc, char *argv[]);
+namespace abc {
+ int Abc_RealMain(int argc, char *argv[]);
+}
#endif
USING_YOSYS_NAMESPACE
@@ -1098,7 +1100,7 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin
abc_argv[2] = strdup("-f");
abc_argv[3] = strdup(tmp_script_name.c_str());
abc_argv[4] = 0;
- int ret = Abc_RealMain(4, abc_argv);
+ int ret = abc::Abc_RealMain(4, abc_argv);
free(abc_argv[0]);
free(abc_argv[1]);
free(abc_argv[2]);
diff --git a/passes/techmap/abc9_exe.cc b/passes/techmap/abc9_exe.cc
index a66e95e21..7dc0a364b 100644
--- a/passes/techmap/abc9_exe.cc
+++ b/passes/techmap/abc9_exe.cc
@@ -31,7 +31,9 @@
#endif
#ifdef YOSYS_LINK_ABC
-extern "C" int Abc_RealMain(int argc, char *argv[]);
+namespace abc {
+ int Abc_RealMain(int argc, char *argv[]);
+}
#endif
std::string fold_abc9_cmd(std::string str)
@@ -277,7 +279,7 @@ void abc9_module(RTLIL::Design *design, std::string script_file, std::string exe
abc9_argv[2] = strdup("-f");
abc9_argv[3] = strdup(tmp_script_name.c_str());
abc9_argv[4] = 0;
- int ret = Abc_RealMain(4, abc9_argv);
+ int ret = abc::Abc_RealMain(4, abc9_argv);
free(abc9_argv[0]);
free(abc9_argv[1]);
free(abc9_argv[2]);