71 Commits
Author SHA1 Message Date
Volodymyr Shymanskyy 2b77d5d207 Update uvwasi 2023-12-18 03:11:42 +02:00
Volodymyr Shymanskyy c2bbe99577 Update uvwasi 2023-12-18 03:07:37 +02:00
Volodymyr Shymanskyy cfdbeac3d1 Cleanup 2023-12-18 02:57:56 +02:00
Colin Ihrig 3ff6776ebd update to uvwasi 0.0.14 (#415)
This bumps the uvwasi dependency version
from 0.0.12 (Nov 2021) to 0.0.14 (Dec 2022).
2023-01-05 15:03:31 +02:00
Volodymyr Shymanskyy a4288495e6 Detect WASI_SDK_PREFIX 2022-08-29 23:05:18 +03:00
Volodymyr Shymanskyy 321ba58316 Merge branch 'main' of https://github.com/wasm3/wasm3 into main 2022-08-29 16:57:22 +03:00
Volodymyr Shymanskyy 7db4a5c3b4 Add install rules. Fix #255 2022-08-29 16:55:59 +03:00
Guus Waals 37ae5a8ebd Support standalone clang with GCC frontend (#310) 2022-08-29 15:28:25 +03:00
Volodymyr Shymanskyy ce423d1861 Update CMakeLists.txt 2022-04-13 21:02:26 +03:00
Vova 1c08f41780 Cleanup 2021-11-01 15:01:52 +02:00
Vova c77c58f037 Improve Intel C Compiler support 2021-06-09 22:57:02 +03:00
Vova cad20bb192 Improve cross-compilation and Big-Endian systems support 2021-06-07 23:52:31 +03:00
Mike Gray 87333d8284 Support building on macOS with M1 chip (#233) 2021-05-14 11:53:22 +03:00
Volodymyr Shymanskyy edeffad821 Move most embedded platforms to a separate subdirectory 2021-04-12 00:31:40 +03:00
Yuta Saito 9f8766b901 Make BUILD_NATIVE to be an option (#225) 2021-04-08 23:30:08 +03:00
Volodymyr Shymanskyy 8c36e17686 Switch uvwasi to personal fork temporarily 2021-03-20 21:02:02 +02:00
Volodymyr Shymanskyy dcfbca24fd Fix integer overflow in uvwasi 2021-03-20 18:12:42 +02:00
Volodymyr Shymanskyy c03fc1dde3 Allow identifier shadowing 2021-03-18 23:24:29 +02:00
Volodymyr Shymanskyy 6b938bfcc4 Cleanup 2021-02-27 23:15:46 +02:00
Volodymyr Shymanskyy f3594be2df Fix selection of default WASI implementation 2021-02-25 11:16:27 +02:00
Volodymyr Shymanskyy dee9389d83 Cleanup 2021-02-22 02:47:10 +02:00
Volodymyr Shymanskyy ead1ebd0e3 Update API usage. Fix #193 2021-02-22 00:50:07 +02:00
Volodymyr Shymanskyy 03e0ace86c Add BUILD_NATIVE flag. Closes #130 2021-02-22 00:22:28 +02:00
Volodymyr Shymanskyy 8ecc645d50 New m3_Call* API. Remove d_m3LogOutput, USE_HUMAN_FRIENDLY_ARGS.
#41. Fix #128
2021-02-05 15:53:37 +02:00
Colin Ihrig 2bad4dddc8 update uvwasi repo (#192)
uvwasi was transferred into the Node.js GitHub org.
This commit updates the repository's link.
2021-01-20 23:59:41 +02:00
Giovanni Petrantoni 05e18653c2 Whence fixes (#180)
* fix wasi_core wrong constants

* small windows (mingw) fixes

* small debug (commented) code fixes

* bonus: fix iOS build

* replace wasi_core with updated wasi-libc generated header

* small hacks to fix C++ ci build
2021-01-10 02:02:35 +02:00
Colin Ihrig 6712c5c4d5 update uvwasi to version 0.0.11 (#167)
Notable changes:

- The uvwasi_preopen_t now uses const char* for the mapped_path
  and real_path fields. Previously, these were not const.
- uvwasi_path_filestat_get() now properly handles the
  UVWASI_LOOKUP_SYMLINK_FOLLOW flag.
- uvwasi_options_init() has been added to reduce the boilerplate
  code associated with initializing uvwasi_options_t's.
- The DEBUG() macro has been renamed to UVWASI_DEBUG() to reduce
  naming conflicts with other projects.
- The uvwasi_fd_filestat_set_times() and
  uvwasi_path_filestat_set_times() functions now have proper
  implementations.
- Several issues have been addressed in uvwasi_fd_readdir().
  A bug in the copying of the directory entry's name has been
  fixed. The function now returns UVWASI_ENOSYS on Windows and
  Android. Serdes support has been added for uvwasi_dirent_t's.
- The libuv dependency has been updated to v1.39.0.
2020-09-20 01:01:17 +03:00
Volodymyr Shymanskyy 65ab7617ea Set CMAKE_C_STANDARD to 99 2020-09-14 22:25:36 +03:00
Volodymyr Shymanskyy eb57b07adf Support MinGW. Fix #146 2020-06-03 01:31:18 +03:00
Colin Ihrig 8d06d40468 update uvwasi to version 0.0.9 (#139)
Notable changes:

- A `DEBUG()` macro and `UVWASI_DEBUG_LOG` build option have been
  added to improve debugging.
- Path length restrictions have been removed across the codebase.
- Initial support for `poll_oneoff()` has been added on all
  platforms. The implementation is based on `uv_poll_t`'s.
- A new `uvwasi_size_t` has been introduced across the WASI system
  call API. This provides consistent 32-bit `size_t`'s.
- The cmake test targets are now only generated if uvwasi is the
  root project to avoid conflicts with targets from embedders.
- `uv.h` has been removed from the public headers.
- A serialization/deserialization API has been added to simplify
  the process of working with WASM memory. This also hides many
  WASI <--> WASM interfacing implementation details from
  embedders.
- A memory corruption bug on Windows related to path resolution
  has been fixed.
2020-05-29 01:28:25 +03:00
Colin Ihrig 207881a32c update uvwasi to version 0.0.8 (#132)
* update uvwasi to version 0.0.8

This release focuses on improving the robustness of the path
resolution and sandboxing, including support for relative
preopen paths.

Also remove the ${} around the uvwasi version, which was a
mistake. The result was that the latest master was always
installed.

* test: update wasi suite to test relative paths

This commit makes sure that both absolute and relative paths get
some test coverage.

* test: use uvwasi on alpine

Run the WASI tests on Alpine using uvwasi. This requires
installing git as well.
2020-04-26 20:19:23 +03:00
Volodymyr Shymanskyy 66e84a5f18 Switch to UVWASI for a test 2020-04-23 01:40:37 +03:00
Colin Ihrig f46714c899 Add initial uvwasi integration (#126)
#79
2020-04-23 00:03:58 +03:00
Volodymyr Shymanskyy 490bf0c9d6 Add emscripten_lib target 2020-04-18 16:51:30 +03:00
Volodymyr Shymanskyy 9443eedd19 Enable tracer support. Resolves #97 2020-03-12 02:52:52 +02:00
Volodymyr Shymanskyy 6270f6f283 Blacklist some tests for Win32 x86 builds 2020-03-11 22:29:05 +02:00
Volodymyr Shymanskyy 0de0dcb4ca Add BUILD_WASI_SUPPORT flag.
Fix #100
2020-02-16 01:14:34 +02:00
Ivan Grokhotkov 804d14991b Make the source directory useable as a CMake library, plus ESP32 related cleanup (#30)
* m3_config_platforms: esp32: make the dependency on esp_system optional

If the application places wasm3 into IRAM using the linker script,
it can define M3_IN_IRAM flag. In this case we don't need to pull in
the dependency on IDF-specific header file into m3.

* cmake: make the source directory useable as a CMake library

Also replace globbing with an explicit list of files, following CMake
best practices.

* platforms/esp32-idf: link m3 as a static library

* platforms/esp32-pio: wrap the wasm3 code into a "PIO library"
2020-01-24 21:22:27 +02:00
Volodymyr Shymanskyy 349855253f Fix WasiEnv build 2020-01-08 22:48:38 +02:00
Volodymyr Shymanskyy a50183c985 Increase native stack on Windows 2020-01-08 04:28:20 +02:00
Volodymyr Shymanskyy cd1b8f936a Move AVR math functions to utils 2020-01-08 00:12:29 +02:00
Volodymyr Shymanskyy f31bbe31b3 Try enabling fomit-frame-pointer and disabling stack checks 2020-01-07 20:07:42 +02:00
Volodymyr Shymanskyy 9eec29286c Cleanup d_m3AllocateLinearMemory 2020-01-02 00:16:33 +02:00
Volodymyr Shymanskyy e10f161e2f Try fixing macos CI 2019-12-31 02:54:31 +02:00
Volodymyr Shymanskyy 00ad8d7bbb Remove extra flags 2019-12-31 02:49:26 +02:00
Volodymyr Shymanskyy 0d83c0cd23 Add -fomit-frame-pointer 2019-12-28 09:28:22 +02:00
Volodymyr Shymanskyy 8d787c5027 Enable specific warnings 2019-12-27 16:21:00 +02:00
Volodymyr Shymanskyy 6f317c814a WASI support for Windows (incomplete) 2019-12-22 22:23:14 +02:00
Volodymyr Shymanskyy b043482021 Make HARDCODED relevant to all builds 2019-12-22 00:14:58 +02:00
Volodymyr Shymanskyy 2e5c607f75 HARD_CODED option wor wasienv 2019-12-21 23:25:54 +02:00