Allow disabling wasm-opt while keeping clang optimizations
#25885
Replies: 3 comments 2 replies
-
|
In most cases binaryen is very much on the cutting edge of WebWassembly features, whereas clang/wasm-ld is normally lagging behind. So I'm hoping this issue with custom pages sizes is really just an anomaly, and the best fix here would be to land WebAssembly/binaryen#7694. In the short term you maybe be able to work around this by not passing the |
Beta Was this translation helpful? Give feedback.
-
|
I'd be happy to, but how do I that ? |
Beta Was this translation helpful? Give feedback.
-
|
FWIW, Clang does support the However, I'm not sure whether Emscripten supports it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The webassembly optimizer
wasm-optdoesn't support every proposal thatclang/lldsupports. This can lead to case where an option that is valid and recognized byemccfails at the optimization stage becausewasm-optdoesn't know of/support a specific feature.For example, the custom page size proposal is support by LLVM since at least LLVM 21.0 but isn't supported by
wasm-optas of right now; see WebAssembly/binaryen#7694.Allowing the
wasm-optstep to be skipped would allow users to still get the clang optimizations in such cases and leave them the possibility of further optimizing the resulting wasm using either a newer version of wasm-opt or the competing optimizer fromwasm-toolsBeta Was this translation helpful? Give feedback.
All reactions