aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/syscall/syscall_libc_wasi.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-11-18 11:49:30 +0100
committerAyke <[email protected]>2024-11-19 07:51:58 +0100
commit0087d4c6bf13a1bac648b0e61459d717bae87b02 (patch)
tree0c75b286e01daa580468482305ef044a1d7cc4a0 /src/syscall/syscall_libc_wasi.go
parent289fceb3eaf0829d1e3b65228b95a79bd5fc9389 (diff)
downloadtinygo-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.go4
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