Skip to content

Commit b52e398

Browse files
committed
Use --detect-features in wasm-reduce. Fixes #2813
1 parent 1e6435a commit b52e398

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/tools/wasm-reduce.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ struct Reducer
282282
// compensated for), and without
283283
for (auto pass : passes) {
284284
std::string currCommand = Path::getBinaryenBinaryTool("wasm-opt") + " ";
285-
// TODO(tlively): -all should be replaced with an option to use the
286-
// existing feature set, once implemented.
287-
currCommand += working + " -all -o " + test + " " + pass;
285+
currCommand += working + " --detect-features -o " + test + " " + pass;
288286
if (debugInfo) {
289287
currCommand += " -g ";
290288
}
@@ -1191,10 +1189,8 @@ int main(int argc, const char* argv[]) {
11911189
"(read-written) binary\n";
11921190
{
11931191
// read and write it
1194-
// TODO(tlively): -all should be replaced with an option to use the existing
1195-
// feature set, once implemented.
11961192
auto cmd = Path::getBinaryenBinaryTool("wasm-opt") + " " + input +
1197-
" -all -o " + test;
1193+
" --detect-features -o " + test;
11981194
if (!binary) {
11991195
cmd += " -S";
12001196
}

0 commit comments

Comments
 (0)