diff options
Diffstat (limited to 'src/tools/wasm-metadce.cpp')
-rw-r--r-- | src/tools/wasm-metadce.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/wasm-metadce.cpp b/src/tools/wasm-metadce.cpp index 9cc06375e..41dcf6ad4 100644 --- a/src/tools/wasm-metadce.cpp +++ b/src/tools/wasm-metadce.cpp @@ -486,7 +486,7 @@ int main(int argc, const char* argv[]) { } Module wasm; - options.applyFeatures(wasm); + options.applyOptionsBeforeParse(wasm); { if (options.debug) { @@ -502,6 +502,8 @@ int main(int argc, const char* argv[]) { } } + options.applyOptionsAfterParse(wasm); + if (options.passOptions.validate) { if (!WasmValidator().validate(wasm)) { std::cout << wasm << '\n'; |