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
[wasm-split] Set import namespace only when given in multi-split (WebAssembly#7966)
Currently, in the case of two-way split, we set `config.importNamespace`
only when `--import-namespace` option is given, and otherwise just use
the default namespace "primary". But in the case of multi split, we set
it regardless of whether the option is given, resulting in the ""
namespace when no option is given.
The default import namespace for multi-split was "" when the multi-split
function was first added (WebAssembly#6943), so I'm not sure whether this
difference was intentional.
https://github.com/WebAssembly/binaryen/blob/a9a7f91eb8a65d508873bae3019a7279be4fbb14/src/tools/wasm-split/wasm-split.cpp#L419
In case it wasn't, I think it makes sense to be consistent between
two-way split and multi-split. So this in effect changes the import
namespace in multi split tests from "" to `primary`.
This also factors out the part that moves `WasmSplitOptions` into
`Config` to a function.
0 commit comments