summaryrefslogtreecommitdiff
path: root/src/tools/wasm-metadce.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-metadce.cpp')
-rw-r--r--src/tools/wasm-metadce.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/wasm-metadce.cpp b/src/tools/wasm-metadce.cpp
index 6fa0477b3..7d91b3e6f 100644
--- a/src/tools/wasm-metadce.cpp
+++ b/src/tools/wasm-metadce.cpp
@@ -609,6 +609,7 @@ int main(int argc, const char* argv[]) {
if (options.extra.count("output") > 0) {
ModuleWriter writer;
writer.setBinary(emitBinary);
+ writer.setDebugInfo(debugInfo);
writer.write(wasm, options.extra["output"]);
}