diff options
Diffstat (limited to 'src/tools/wasm-dis.cpp')
-rw-r--r-- | src/tools/wasm-dis.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/wasm-dis.cpp b/src/tools/wasm-dis.cpp index f9f303359..1603736ce 100644 --- a/src/tools/wasm-dis.cpp +++ b/src/tools/wasm-dis.cpp @@ -64,7 +64,7 @@ int main(int argc, const char* argv[]) { std::cerr << "parsing binary..." << std::endl; } Module wasm; - options.applyFeatures(wasm); + options.applyOptionsBeforeParse(wasm); try { ModuleReader().readBinary(options.extra["infile"], wasm, sourceMapFilename); } catch (ParseException& p) { @@ -82,6 +82,8 @@ int main(int argc, const char* argv[]) { Fatal() << "error in parsing wasm source mapping"; } + options.applyOptionsAfterParse(wasm); + // TODO: Validation. However, validating would mean that users are forced to // run with wasm-dis -all or such, to enable the features (unless the // features section is present, but that's rare in general). It would be |