WebAssembly/binaryen

Missing documented feature --multi-memory-lowering

Closed this issue · 4 comments

From the official readme:

(As a workaround for such older VMs you can run wasm-opt --multi-memory-lowering to lower multiple memories into a single one.)

However this option is reported as unknown by wasm-opt. Is there any alternative or has it just be renamed?

It is still there:

registerPass("multi-memory-lowering",
"combines multiple memories into a single memory",
createMultiMemoryLoweringPass);

;; CHECK-NEXT: --multi-memory-lowering combines multiple memories into
;; CHECK-NEXT: a single memory
;; CHECK-NEXT:

Perhaps you are using an older version? It should be in 111 and later.

That is strange, I just compiled all tools from the main branch yesterday, but the version number is 108, not 111. Am I supposed to use a different branch?

Just verified, I am on main branch @ fcd8dfe, full build few hours ago, and the version number reported is 108. I just double checked I was not using anything installed on my system already.

Perhaps you have an older wasm-opt in your path, or something like that? Make sure you are running the right binary.

Possibly, I am going to sort this out.
In any case the option is there on the released binaries, so I will be closing this issue.