diff options
author | whitequark <whitequark@whitequark.org> | 2020-07-09 17:52:52 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-07-09 17:52:52 +0000 |
commit | ab59e33b2bb690ef02dabfc42fffd752c6a6e864 (patch) | |
tree | ec2b486fbeea2efe91b7b345907fcb2535442156 /backends | |
parent | f313211c3232a805b63687e04fdbe541ef76f5dd (diff) | |
download | yosys-ab59e33b2bb690ef02dabfc42fffd752c6a6e864.tar.gz yosys-ab59e33b2bb690ef02dabfc42fffd752c6a6e864.tar.bz2 yosys-ab59e33b2bb690ef02dabfc42fffd752c6a6e864.zip |
cxxrtl: add missing extern "C".
This bug was hidden if a header was generated.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/cxxrtl/cxxrtl_backend.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc index 5e5ba5ac0..6d3c2f4f9 100644 --- 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); |