Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Emterpreter and changing function names #7988
(Note: I tried sending this twice to the emscripten-discuss mailing list, and it was silently dropped each time... Not sure what it didn't like)
When compiling my RenPyWeb project, which use Emterpreter, I often get
This may happen when I make some changes in the code or in the
AFAIU these are generated by Emscripten ('grep' only sees references in
This is annoying because I usually have to compile (5-10mn depending on
Is there anything I can do to avoid these dynamic function names?
I think the source of those numbers is the linker - it adds suffixes when names would otherwise collide (e.g. two files might contain
One option here may be to support wildcards in the whitelist, perhaps. Another is you can use
Those are static conflicts indeed:
I don't know how the number is computed. It's moderately stable (doesn't change everytime), it's not the line number, and it changes depending on other files linked and possibly the linker options used.
With a 2-steps compilation (*.bc -> monolith.bc -> .html), I can see some matching symbols (modulo "." -> "_"):
which I can crudely flag:
(I had to LOL though ;))
One issue is I cannot distinguish which ones to whitelist (though in this particular case these functions are reasonably quick).
For reference my work-around is flawed - and I don't understand how it worked until I upgraded today...