emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.84k stars 3.31k forks source link

WASM_OBJECT_FILES=1 deprecated? #13742

Open juj opened 3 years ago

juj commented 3 years ago

I am doing whole program analysis in a LLVM pass, which needs the whole program to run through a pass on a single final .bc file. I was using -s WASM_OBJECT_FILES=0 for that feature, but now it looks like #10643 has deprecated that mode.

My understanding is that the wasm object files do not allow a LLVM analysis tool pass to be run on the high level bitcode format anymore, before it's been lowered to wasm? I am not sure how to proceed without WASM_OBJECT_FILES=1 support anymore. Is there a specific reason that the .bc flow needs to go away?

sbc100 commented 3 years ago

The way to do LTO is to use the normal llvm flag for enabling bitcode object files which is -flto.

sbc100 commented 3 years ago

https://emscripten.org/docs/optimizing/Optimizing-Code.html#lto

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.