Sam Clegg
Sam Clegg
`getEnvStrings`, `getExecutableName` and `ENV` are all JS library symbols are that only included if they are needed by program being built. The only symbol that currently depends on those ones...
If you want to force the inclusion of a library symbol such as `ENV` you can use `-sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=$ENV` (remember to escape the dollar sign if you are typing that in...
Yes, that looks like exactly that kind place where you want to use `-sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=$ENV`. However, if `ENV` is otherwise unused that means it not needed by your program and so...
Both `-sEXPORTED_RUNTIME_METHODS=ENV` and `-sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=$ENV` should work if you want to use `ENV` from within the program. The difference with `-sEXPORTED_RUNTIME_METHODS=ENV` is that it exports `ENV` to the outside, which means...
If you are seeing the `pthread_create: could not find canvas with ID` error message then that means that `ENVIRONMENT_IS_PTHREAD` is False which means that call has been correctly proxied back...
I see, can the canvas only be transfer to one thread? I guess that why `PROXY_TO_PTHREAD` breaks your use case because likely the canvas has already be transferred to the...
Yup, that does sounds like a reasonable request. The `wasi_snapshot_preview1.proc_exit` should not be confused with the a `proc_exit` symbol at the C level. I suspect this might be harder than...
I managed to reproduce this without `-sMAIN_MODULE` or `-sEXPORT_ALL`: ``` $ cat test.c #include EMSCRIPTEN_KEEPALIVE void proc_exit(int status) { (void)status; } int main() {} $ ./emcc test.c -sSTANDALONE_WASM $ node...
I think fixing this issue (native symbols conflicting with JS library symbols) is going to be hard to solve. To use `MAIN_MODULE=2` you would need to list all the symbols...
`-g` is flag that normally only effect compilation, so using to to also select the libraries to link would actually be a departure from normal toolchain standards. I'm pretty sure...