projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f313211
)
cxxrtl: add missing extern "C".
author
whitequark
<whitequark@whitequark.org>
Thu, 9 Jul 2020 17:52:52 +0000
(17:52 +0000)
committer
whitequark
<whitequark@whitequark.org>
Thu, 9 Jul 2020 17:52:52 +0000
(17:52 +0000)
This bug was hidden if a header was generated.
backends/cxxrtl/cxxrtl_backend.cc
patch
|
blob
|
history
diff --git
a/backends/cxxrtl/cxxrtl_backend.cc
b/backends/cxxrtl/cxxrtl_backend.cc
index 5e5ba5ac0f04f3b7f58b2b64eadc96ff4b821b46..6d3c2f4f9b78af29783ba00d15ebc2f1b457f82b 100644
(file)
--- a/
backends/cxxrtl/cxxrtl_backend.cc
+++ b/
backends/cxxrtl/cxxrtl_backend.cc
@@
-1935,6
+1935,7
@@
struct CxxrtlWorker {
f << "} // namespace " << design_ns << "\n";
f << "\n";
if (top_module != nullptr && debug_info) {
+ f << "extern \"C\"\n";
f << "cxxrtl_toplevel " << design_ns << "_create() {\n";
inc_indent();
std::string top_type = design_ns + "::" + mangle(top_module);