From d8f9e9635ca7ca31d3dc02f3030c9fdaa453f967 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 28 Apr 2020 09:51:14 -0700 Subject: Use --detect-features in wasm-reduce. Fixes #2813 (#2815) --- src/tools/wasm-reduce.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp index 6e6762099..d55dab893 100644 --- a/src/tools/wasm-reduce.cpp +++ b/src/tools/wasm-reduce.cpp @@ -282,9 +282,7 @@ struct Reducer // compensated for), and without for (auto pass : passes) { std::string currCommand = Path::getBinaryenBinaryTool("wasm-opt") + " "; - // TODO(tlively): -all should be replaced with an option to use the - // existing feature set, once implemented. - currCommand += working + " -all -o " + test + " " + pass; + currCommand += working + " --detect-features -o " + test + " " + pass; if (debugInfo) { currCommand += " -g "; } @@ -1191,10 +1189,8 @@ int main(int argc, const char* argv[]) { "(read-written) binary\n"; { // read and write it - // TODO(tlively): -all should be replaced with an option to use the existing - // feature set, once implemented. auto cmd = Path::getBinaryenBinaryTool("wasm-opt") + " " + input + - " -all -o " + test; + " --detect-features -o " + test; if (!binary) { cmd += " -S"; } -- cgit v1.2.3