You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered this when executing tests for a project which uses binaryen-rs as a dependency. The project sets the optimization level to 0 during some tests.
From wasm-opt --help:
-O0 execute no optimization passes
The wasm-opt behavior:
$ wasm-opt -O0 --shrink-level=0 -o output.wasm flipper.wasm
warning: no passes specified, not doing any work
But binaryen-rs still optimizes if the optimization level and the shrink level is both set to 0:
I discovered this when executing tests for a project which uses
binaryen-rs
as a dependency. The project sets the optimization level to0
during some tests.From
wasm-opt --help
:The
wasm-opt
behavior:But
binaryen-rs
still optimizes if the optimization level and the shrink level is both set to0
:This test fails for
master
.I only quickly searched in the code and my hunch is that this could be a reason:
binaryen-rs/binaryen-sys/Shim.cpp
Line 74 in f6091c0
The text was updated successfully, but these errors were encountered: