diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/wasm-reduce.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp index 6a442aeba..eff46bbcf 100644 --- a/src/tools/wasm-reduce.cpp +++ b/src/tools/wasm-reduce.cpp @@ -289,9 +289,6 @@ struct Reducer for (auto pass : passes) { std::string currCommand = Path::getBinaryenBinaryTool("wasm-opt") + " "; currCommand += working + " -o " + test + " " + pass + " " + extraFlags; - if (debugInfo) { - currCommand += " -g "; - } if (!binary) { currCommand += " -S "; } @@ -1260,6 +1257,9 @@ int main(int argc, const char* argv[]) { [&](Options* o, const std::string& argument) { input = argument; }); options.parse(argc, argv); + if (debugInfo) { + extraFlags += " -g "; + } if (getTypeSystem() == TypeSystem::Nominal) { extraFlags += " --nominal"; } @@ -1282,6 +1282,7 @@ int main(int argc, const char* argv[]) { std::cerr << "|test: " << test << '\n'; std::cerr << "|working: " << working << '\n'; std::cerr << "|bin dir: " << binDir << '\n'; + std::cerr << "|extra flags: " << extraFlags << '\n'; // get the expected output copy_file(input, test); |