diff options
Diffstat (limited to 'src/tools/wasm-opt.cpp')
-rw-r--r-- | src/tools/wasm-opt.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/wasm-opt.cpp b/src/tools/wasm-opt.cpp index 33e9a0396..b2d1f2c14 100644 --- a/src/tools/wasm-opt.cpp +++ b/src/tools/wasm-opt.cpp @@ -318,7 +318,11 @@ int main(int argc, const char* argv[]) { curr = &other; } - if (options.runningPasses()) { + if (!options.runningPasses()) { + if (!options.quiet) { + std::cerr << "warning: no passes specified, not doing any work\n"; + } + } else { if (options.debug) { std::cerr << "running passes...\n"; } @@ -363,7 +367,9 @@ int main(int argc, const char* argv[]) { } if (options.extra.count("output") == 0) { - std::cerr << "no output file specified, not emitting output\n"; + if (!options.quiet) { + std::cerr << "warning: no output file specified, not emitting output\n"; + } return 0; } |