Skip to content
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

wasm-opt output to stdout? #7240

Closed
dsherret opened this issue Jan 23, 2025 · 3 comments
Closed

wasm-opt output to stdout? #7240

dsherret opened this issue Jan 23, 2025 · 3 comments

Comments

@dsherret
Copy link

Regarding this:

std::cerr << "warning: no output file specified, not emitting output\n";

Would it be possible/beneficial to have an option that accepts wasm module bytes via stdin and outputs the optimized bytes via stdout? (ex. something that works on Windows)

@kripken
Copy link
Member

kripken commented Jan 23, 2025

I'd accept a PR for this. I'm not sure though if you're asking whether there is benefit, or whether you are asking for the feature because you would benefit?

@tlively
Copy link
Member

tlively commented Jan 30, 2025

If you use - as the input file, wasm-opt will already read from stdin. You can similarly use - as the output file to write to stdout.

@dsherret
Copy link
Author

Ah ok, I thought there must be a way to do this. Thanks!

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

No branches or pull requests

3 participants