diff options
author | Ayke van Laethem <[email protected]> | 2024-11-18 11:49:30 +0100 |
---|---|---|
committer | Ayke <[email protected]> | 2024-11-19 07:51:58 +0100 |
commit | 0087d4c6bf13a1bac648b0e61459d717bae87b02 (patch) | |
tree | 0c75b286e01daa580468482305ef044a1d7cc4a0 /src/syscall/syscall_libc_wasi.go | |
parent | 289fceb3eaf0829d1e3b65228b95a79bd5fc9389 (diff) | |
download | tinygo-0087d4c6bf13a1bac648b0e61459d717bae87b02.tar.gz tinygo-0087d4c6bf13a1bac648b0e61459d717bae87b02.zip |
syscall: use wasi-libc tables for wasm/js target
Instead of using fake tables for errno and others, use the ones that
correspond to wasi-libc.
Diffstat (limited to 'src/syscall/syscall_libc_wasi.go')
-rw-r--r-- | src/syscall/syscall_libc_wasi.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/syscall/syscall_libc_wasi.go b/src/syscall/syscall_libc_wasi.go index 06169bb2b..bbf81cd05 100644 --- a/src/syscall/syscall_libc_wasi.go +++ b/src/syscall/syscall_libc_wasi.go @@ -1,4 +1,6 @@ -//go:build wasip1 || wasip2 +//go:build js || wasip1 || wasip2 + +// Note: also including js in here because it also uses wasi-libc. package syscall |