Repository navigation
Conversation
sbc100
approved these changes
Jan 18, 2022
sbc100
left a comment
Collaborator
There was a problem hiding this comment.
Nice!
(Make me think once again it might be time to split standalone.c into multiple files)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement stubs for standalone things we do not expect to handle like
preloaded files. Handle stdout/stderr using interposition as suggested by
@sbc100 , importing the VM's fd_write under a different name.
This is not complete (and so #16008 will not be closed) because
to actually run in a wasm VM we need to implement more syscalls in WasmFS.
Right now those end up as imports that the VM cannot handle. However, in
an optimized build some tests already pass (as those imports are removed),
so this PR is able to add some testing.
Also switch
wasmfsto use-O2, which is consistent with other modes(see the ones nearby in the diff), and which is necessary as just mentioned
for the testing added.