Closed juj closed 5 years ago
Correct. 1 is a cleanup we just need to do. 2 on the other hand is something we should not even emit when it wasn't asked for, which requires changes in binaryen to allow it to emit a binary directly. That will be much more efficient as well and improve compile times. Issue for that: https://github.com/WebAssembly/binaryen/issues/608
Does emcc support the -save-temps
flag or have some way to do the same thing? Probably these files would fall under that category (I agree we don't want to keep them in the usual case).
Yeah, we keep temp files around when EMCC_DEBUG
is set in the env. Makes sense to do the same for these files.
Alright, posted some cleanup lines.
👍
This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
When building e.g.
em++ tests/hello_world.cpp -o a.html -s BINARYEN=1 -O3 -s BINARYEN_METHOD='native-wasm'
, two redundant filesa.asm.js
anda.wast
are generated. It would be good to not output extra files that aren't needed.1) I think we should always delete the file
a.asm.js
after build is done ifBINARYEN_METHOD
doesn't contain "asmjs
", since if asmjs was not asked, the filea.asm.js
is then of that "meta"-asm format and not functional?2) The file
a.wast
should not get generated unlessBINARYEN_METHOD
contains "interpret-s-expr
"?Does that sound correct?