-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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] Host should separate arguments for engine, mono and application #88760
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsPossible designs
this assumes that B) use well know pass-thru arguments
escaping becomes nasty. More details discussed here #70892
|
Moving this to 9.0, so we can get an agreement on how this should be done, as it should be consistent with how |
cc @richlander |
Possible designs
A) use multiple
--
to separate itnode --enable-source-maps main.js -- hello.dll --setenv=XXX=1 -- -fromCity=Prague to Ilona
--enable-source-maps
is nodeJS engine flag--setenv=XXX=1
is mono engine flag-fromCity=Prague
is application argumentto
is application argIlona
is application argdotnet run --engine=node -- --enable-source-maps main.js -- hello.dll --setenv=XXX=1 -- -fromCity=Prague to Ilona
this assumes that
main.js
which is user will call.withRuntimeOptionsFromArguments()
to consume it.B) use well know pass-thru arguments
wasmtime run --env MONO_OPTIONS="values" dotnet.wasm
dotnet run --engine=wasmtime --engine-arg='--env MONO_OPTIONS="values"' dotnet.wasm
escaping becomes nasty.
Also, from #85674 (comment)
Perhaps there should be pass-thru argument like
--host:xxx=yyyand
--runtime:aaa=bbbbefore application
--? As an alternative to multiple
--.
More details discussed here #70892
The text was updated successfully, but these errors were encountered: