diff options
author | whitequark <whitequark@whitequark.org> | 2020-07-09 20:17:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 20:17:12 +0000 |
commit | 0e9b889b77454ce8bcee47e73ed9b79f9b31771f (patch) | |
tree | 3ce462403ea7d970707b8d3e618883bd7ea136a9 | |
parent | edbaf2fdf667d2d0d2bd7a5f9a8ae086b13b02ae (diff) | |
parent | ab59e33b2bb690ef02dabfc42fffd752c6a6e864 (diff) | |
download | yosys-0e9b889b77454ce8bcee47e73ed9b79f9b31771f.tar.gz yosys-0e9b889b77454ce8bcee47e73ed9b79f9b31771f.tar.bz2 yosys-0e9b889b77454ce8bcee47e73ed9b79f9b31771f.zip |
Merge pull request #2254 from whitequark/cxxrtl-extern-c
cxxrtl: add missing extern "C"
-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); |