Replies: 1 comment 1 reply
-
You would add dependency entry for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use emcc compilation parameter --js-library SOME_LIBRARY.JS to add functionality to C/C++ code to interact with JS code.
SOME_LIBRARY.JS contains such code:
addToLibrary(
{
}
Func1 is not used directly from C/C++ hence it's thrown out by emcc compiler and I need to add it manually in produced JS file after compilation.
How can I force to include this function into the final JS file without manual insert or without calling that from C/C++ to dumb compiler and not throw it out?
ps. I could potentially include Func1() in web application but dont want since it only does the job with the internal stuff of generated JS.
Beta Was this translation helpful? Give feedback.
All reactions