emscripten
emscripten copied to clipboard
Add initial support -fcoverage-mapping support
This is enought make it work up until llvm-cov tries to read the named data sections in the binary and can't find them. For this final part to work we probably need to switch the object format to using multiple code and data sections: https://github.com/WebAssembly/tool-conventions/issues/138
Not sure if its worth submitting this part in isolation without a fully working solution?
See #13046
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.
emcc -fprofile-instr-generate -fcoverage-mapping demo.cpp
wasm-ld: error: /var/folders/61/x35v93n50_5g1dfjrtprr2dw0000gn/T/emscripten_temp_xjrzk63_/demo_0.o: undefined symbol: __llvm_profile_runtime
need help, emcc seems not support -fcoverage-mapping?
emcc -fprofile-instr-generate -fcoverage-mapping demo.cppwasm-ld: error: /var/folders/61/x35v93n50_5g1dfjrtprr2dw0000gn/T/emscripten_temp_xjrzk63_/demo_0.o: undefined symbol: __llvm_profile_runtime
need help, emcc seems not support -fcoverage-mapping?
No, emcc doesn't support this yet. This PR would be a start, but more work would be needed.
Any news on this?
@sbc100 Any update here? Do the original shortcoming still exists? Is there value in including without support for named data sections?
Currently going to look at getting -fprofile-instr-generate -fcoverage-mapping working by manually building then linking to libclang_rt.profile.a Which seemed to be the spirit here
No update I'm afraid. Let is know if you manage to get stuff working.
Closing in favor of #13072