You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had a similar issue.
Based on the repository you linked, I assume your binding are in libcld3.a.
IIRC, linking .a archives only links used symbols, so bindings should be defined in a .bc file, since by definition they are not used in the compiled code.
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
I maybe doing something stupid but couldn't figure out myself, so would like to ask some help.
I've exported one class via embind, as below:
and build it via emcc,
and output does not contains exported class in module.
If I created dummy fn to hold reference of class only
and export it explicitly via
-s EXPORTED_FUNCTIONS="['_dummy']"
, then embinded class also exported as well. This makes me guess if this is somehow related with dead code elimination, but couldn't figure out how to prevent this. Am I missing some configurations? Repo I've used for this is at https://github.com/kwonoj/docker-cld3-wasm/tree/master/build, specifically https://github.com/kwonoj/docker-cld3-wasm/blob/master/build/build.sh / https://github.com/kwonoj/docker-cld3-wasm/blob/master/build/embind.patch .The text was updated successfully, but these errors were encountered: