-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[wasi] Bundle runtimeconfig in the single file bundle
#95377
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
Conversation
.. are extra files to deploy, or files for VFS since that's not supported
…e file bundle case
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsThis removes the need for having access to a local filesystem for reading the runtimeconfig .
TODO: add test for invariantglobalization Fixes #94407 .
|
|
Tests here would overlap with #95281 . |
This fixes the case when `RunAOTCompilation=true` in the project, but we only build with relinking.
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
cc @ilonatommy |
lewing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we sure this is how we want to handle extrafilestodeploy in this case?
Till we figure out how we want to handle it, I want to catch attempts to use this when it will just silently fail. |
|
interesting Log |
|
|
||
| <_RuntimeConfigJsonPath>$([MSBuild]::NormalizePath($(_AppBundleDirForRunCommand), '$(AssemblyName).runtimeconfig.json'))</_RuntimeConfigJsonPath> | ||
| <RunArguments Condition="'$(RunArguments)' == ''">exec "$([MSBuild]::NormalizePath($(WasmAppHostDir), 'WasmAppHost.dll'))" --runtime-config "$(_RuntimeConfigJsonPath)" $(WasmHostArguments)</RunArguments> | ||
| <RunArguments Condition="'$(RunArguments)' == '' and '$(WasmSingleFileBundle)' != 'true'">exec "$([MSBuild]::NormalizePath($(WasmAppHostDir), 'WasmAppHost.dll'))" --runtime-config "$(_RuntimeConfigJsonPath)" $(WasmHostArguments)</RunArguments> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would prefer concatenating the arguments one by one and having a condition on the dir one rather than duplicating the whole line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's simple enough right now, so I'll keep it as-is. But I wanted to take the same approach as you suggested, but it would make a little more complicated, tracking to make sure that we don't add the extra argument when RunArguments was set before these lines.
fanyang-mono
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, except for one question.
Yeah -- #94820 . I'll also update xharness to handle this |
This removes the need for having access to a local filesystem for reading the runtimeconfig . Thus the app can be run with
wasmtime run foo.wasm.Fixes #94407 .