Allow disabling wasm-opt while keeping clang optimizations
#25885
anlavandier
started this conversation in
Ideas
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 |
0 replies
|
I'd be happy to, but how do I that ? |
1 reply
|
FWIW, Clang does support the However, I'm not sure whether Emscripten supports it. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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-toolsAll reactions