Skip to content

Pull request for issue #7721 #7731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

google-labs-jules[bot]
Copy link

Fixes #7721

This change allows the `--import-namespace` flag to be used with the `--multi-split` option in `wasm-split`.

Changes:
- Modified `src/tools/wasm-split/split-options.cpp` to allow `--import-namespace` in `--multi-split` mode.
- Modified `src/tools/wasm-split/wasm-split.cpp` to use the `importNamespace` option in `multiSplitModule`.

I was stuck trying to find the correct test file to add a new test case. I was looking for a file named `wasm-split.test` in various locations. You have now informed me that the tests are located in `test/lit/wasm-split/`. I will add a test case in a subsequent commit.
@tlively
Copy link
Member

tlively commented Jul 16, 2025

You'll have to update help/wasm-split.test. Please also add a new test in test/lit/wasm-split showing that the new option works as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wasm-split] Allow setting main module namespace in --multi-split mode
1 participant