What code specifically? On Thu, Jun 23, 2016 at 10:11 AM, Gary Pickrell <[email protected]> wrote:
> > Alon, > > Thanks for looking into this. > > I am using --memory-init-file 0 and -s NO_FILESYSTEM=1 I though both of > these should disable the filesystem. main.cpp only has one function that > returns a string. It should not include the filesystem. When I look at > the main.js created by emscripten it looks like it has conditional code to > load file system stuff. > > -Gary > > On Thursday, June 23, 2016 at 9:55:37 AM UTC-7, Alon Zakai wrote: >> >> It should automatically not be included if it is not used. We detect >> which syscalls are invoked, and if none of them are filesystem-related, >> then filesystem code is not included. >> >> And the node 'fs' module is loaded if we need it to load a file. That can >> happen due to loading a file package, or a mem init file, or some other >> supporting file. You can disable those, of course (--memory-init-file 0 for >> the mem init file, etc.). >> >> >> -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
