summaryrefslogtreecommitdiff
path: root/src/tools/wasm2asm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm2asm.cpp')
-rw-r--r--src/tools/wasm2asm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/wasm2asm.cpp b/src/tools/wasm2asm.cpp
index cc53dc834..2251a332c 100644
--- a/src/tools/wasm2asm.cpp
+++ b/src/tools/wasm2asm.cpp
@@ -39,7 +39,8 @@ int main(int argc, const char *argv[]) {
})
.add("--allow-asserts", "", "Allow compilation of .wast testing asserts",
Options::Arguments::Zero,
- [](Options* o, const std::string& argument) {
+ [&](Options* o, const std::string& argument) {
+ builderFlags.allowAsserts = true;
o->extra["asserts"] = "1";
})
.add("--pedantic", "", "Emulate WebAssembly trapping behavior",