Add an --emit-clif option to wasmtime compile#6307
Conversation
1ee1d77 to
ce61a22
Compare
ce61a22 to
5eb1995
Compare
Subscribe to Label Actioncc @peterhuene DetailsThis issue or pull request has been labeled: "wasmtime:api", "wasmtime:config"Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
Label Messager: wasmtime:configIt looks like you are changing Wasmtime's configuration options. Make sure to
DetailsTo modify this label's message, edit the To add new label messages or remove existing label messages, edit the |
--emit-clif option to wasmtime compile--emit-clif option to wasmtime compile
itsrainy
left a comment
There was a problem hiding this comment.
This looks good to me! Just a couple small comments.
Co-authored-by: Rainy Sinclair <844493+itsrainy@users.noreply.github.com>
|
Looks like the build is failing because the |
Doh, thanks Rainy! |

Add the
--emit-clif <PATH>option towasmtime compile, making it easier to inspect the intermediate clif produced when compiling a wasm module. The path argument is a directory that will be created if its missing, and it will be populated with files namedwasm_func_<idx>.clif, where<idx>is the function index in the wasm module.Currently this option is only supported when using cranelift to compile a wasm module, and an error will be raised if winch is used instead.