zoraaver and GitHub
913a1414ad
Add support for closing/renumbering preopen fds ( #2578 )
...
There doesn't appear to be a clear reason not to support this behavior.
It seems it was disallowed previously as a precaution. See
https://github.com/bytecodealliance/wasmtime/commit/67e2e57b02cd244c004379690aa56d3d5e187153
for more context.
2023-09-26 09:31:32 +08:00
zoraaver and GitHub
f474f3d668
Return __WASI_EINVAL from fd_prestat_dir_name ( #2580 )
...
Return a WASI error code (rather than a host POSIX one). In addition,
there is no need to return an error in the case that the provided buffer
is too large.
2023-09-25 18:40:12 +08:00
zoraaver and GitHub
06527f724e
Remove provision of unnecessary fd rights ( #2579 )
...
The WASI docs allow for fewer rights to be applied to an fd than requested but
not more. This behavior is also asserted in the rust WASI tests, so it's necessary
for those to pass as well.
2023-09-22 09:11:25 +08:00
zoraaver and GitHub
d436e846ab
Add support for running tests on apple M1 macs ( #2554 )
2023-09-17 13:54:28 +08:00
eaf1897a70
Add support for universal binaries on OSX ( #2060 )
...
When building for multiple architectures on OSX, it's necessary to use
compiler macros to conditionally include architecture-specific code
rather than conditionally including architecture-specific assembly files
via cmake. See
https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
and
https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_ARCHITECTURES.html
for more details.
Co-authored-by: Zoraaver Singh <zoraaver@amazon.co.uk >
2023-03-30 09:53:07 +08:00