Skip to content

-fvisibility-inlines-hidden hinders symbol export from CXCppInterOp.cpp for emscripten use case #518

@anutosh491

Description

@anutosh491

Description of bug

Not sure about the native use case (haven't looked into that) but we had this untill now

add_llvm_library(clangCppInterOp
SHARED
CppInterOp.cpp
CXCppInterOp.cpp

I guess we all assumed that this was enough to have symbols out of CXCppInterOp.cpp being exposed just like the other source files.

But recently while reviewing #483 I realized that not even a single symbol out of this file is being exported.

This is the reason, these symbols have been manually exported in the PR
https://github.com/compiler-research/CppInterOp/pull/483/files#diff-054935aee7c0887220251f89b2179dbc4a0c418a69bca9f74854305ae7c0f967R31-R37

What operating system was you using when the bug occured?

Other

What is the architechture of the cpu on your system?

Other

What did you build CppInterOp against?

Clang-repl (LLVM19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions