Latest wasi-libc#109
Merged
Latest wasi-libc#109
Uh oh!
There was an error while loading. Please reload this page.
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.
In this PR I rebase our
wasi-libcfork to the latest upstream. Most importantly, many things that were not supported when we first forkedwasi-libchave now been implemented (i.e. emulated). For example, signals or process clocks. So I use those when possible.The diff between faasm's branch and the latest upstream head can be inspected here. I would like to simplify it further (e.g. removing syscalls support in Faasm?), but this is out of the scope of this PR.
The summary of changes after the rebase are the following:
wasi-libc. Not doing so, prevented catching some bugs of dependencies building with older sysroots.mmap/munmapis also supported as part ofwasi-libcnow. I ammend our demo functions to compile with both ourmmapimplementation andwasi-libc's.