Re: _main no longer called?

2018-05-24 Thread dtippett52
Sure, I filed an issue at https://github.com/kripken/emscripten/issues/6581. Thanks, David On Tuesday, May 22, 2018 at 12:35:01 PM UTC-7, Alon Zakai wrote: > > Can you please file an issue with a testcase for those spaces that you > mention? That sounds like a bug we should fix (possibly relate

Re: _main no longer called?

2018-05-22 Thread Alon Zakai
Can you please file an issue with a testcase for those spaces that you mention? That sounds like a bug we should fix (possibly related to the recent commandline parsing changes). - Alon On Tue, May 22, 2018 at 10:34 AM, wrote: > Thanks Alon. > > I ran into some additional issues with spaces in

Re: _main no longer called?

2018-05-22 Thread dtippett52
Thanks Alon. I ran into some additional issues with spaces in EXTRA_EXPORTED_RUNTIME_METHODS which didn't cause emcc to error, but did cause it to ignore subsequent entries. However now that those are fixed everything seems to be working as expected. Thanks, David On Friday, May 18, 2018 at

Re: _main no longer called?

2018-05-18 Thread Alon Zakai
We did stop exporting those things by default, so probably it's that. See http://kripken.github.io/emscripten-site/docs/getting_started/FAQ.html#why-do-i-get-typeerror-module-something-is-not-a-function (and the changelog). If that doesn't fix it, please file an issue with a testcase, it could b

Re: _main no longer called?

2018-05-18 Thread dtippett52
Thanks, that fixed my initial problem. I am now encountering methods that are no longer exported. In particular Runtime which contains stackSave, stackRestore and addFunction is undefined. I tried to add it to EXTRA_EXPORTED_RUNTIME_METHODS in multiple ways with no success. What is the recommen

Re: _main no longer called?

2018-05-17 Thread Alon Zakai
One possible issue is that a while ago (a few months I think) we started to depend on static detection of main(). The reason is that knowing if it's present statically at compile time lets us optimize better, and also it overlaps with the onRuntimeInitialized JS callback which does basically the sa

_main no longer called?

2018-05-17 Thread dtippett52
I updated the latest incoming a couple of days ago and noticed that _main is no longer called in the generated .js file. (Currently testing Wasm) Is this intended? In my code I define _main manually in JavaScript. Thanks, David -- You received this message because you are subscribed to the