From ba7e2b70edb24441e4e91a46235e75ecc3521ef7 Mon Sep 17 00:00:00 2001 From: losfair Date: Sun, 13 Oct 2019 20:51:48 +0800 Subject: [PATCH] Add block-trace flag to CLI. --- src/bin/wasmer.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bin/wasmer.rs b/src/bin/wasmer.rs index e54fddd93..4cd4cd58e 100644 --- a/src/bin/wasmer.rs +++ b/src/bin/wasmer.rs @@ -179,6 +179,10 @@ struct Run { #[structopt(long = "call-trace")] call_trace: bool, + // Enable the BlockTrace middleware. + #[structopt(long = "block-trace")] + block_trace: bool, + /// The command name is a string that will override the first argument passed /// to the wasm program. This is used in wapm to provide nicer output in /// help commands and error messages of the running wasm program @@ -834,6 +838,10 @@ fn get_compiler_by_backend(backend: Backend, opts: &Run) -> Option