aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2024-03-01 16:36:55 +0100
committerAyke <[email protected]>2024-03-02 20:49:56 +0100
commit1e13c6d18f3ec73ce3aca01280f92d19763ae322 (patch)
treeda56b73df7351456ec18ae935b64d1a387e40ca5
parent14121f4b0ea362573f20ba9868bd030b24a404fe (diff)
downloadtinygo-1e13c6d18f3ec73ce3aca01280f92d19763ae322.tar.gz
tinygo-1e13c6d18f3ec73ce3aca01280f92d19763ae322.zip
syscall: add wasm_unknown to some additional files so it can compile more code
Signed-off-by: deadprogram <[email protected]>
-rw-r--r--src/syscall/file_emulated.go2
-rw-r--r--src/syscall/file_hosted.go2
-rw-r--r--src/syscall/syscall_nonhosted.go2
-rw-r--r--src/syscall/tables_nonhosted.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/syscall/file_emulated.go b/src/syscall/file_emulated.go
index 5ed57f13b..8dd3bc14f 100644
--- a/src/syscall/file_emulated.go
+++ b/src/syscall/file_emulated.go
@@ -1,4 +1,4 @@
-//go:build baremetal || (wasm && !wasip1)
+//go:build baremetal || (wasm && !wasip1) || wasm_unknown
// This file emulates some file-related functions that are only available
// under a real operating system.
diff --git a/src/syscall/file_hosted.go b/src/syscall/file_hosted.go
index d9198a779..f448f018d 100644
--- a/src/syscall/file_hosted.go
+++ b/src/syscall/file_hosted.go
@@ -1,4 +1,4 @@
-//go:build !(baremetal || (wasm && !wasip1))
+//go:build !(baremetal || (wasm && !wasip1) || wasm_unknown)
// This file assumes there is a libc available that runs on a real operating
// system.
diff --git a/src/syscall/syscall_nonhosted.go b/src/syscall/syscall_nonhosted.go
index 87d4d9d7b..b56d71af6 100644
--- a/src/syscall/syscall_nonhosted.go
+++ b/src/syscall/syscall_nonhosted.go
@@ -1,4 +1,4 @@
-//go:build baremetal || js
+//go:build baremetal || js || wasm_unknown
package syscall
diff --git a/src/syscall/tables_nonhosted.go b/src/syscall/tables_nonhosted.go
index d9f2f8654..e66620cbf 100644
--- a/src/syscall/tables_nonhosted.go
+++ b/src/syscall/tables_nonhosted.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build baremetal || nintendoswitch || js
+//go:build baremetal || nintendoswitch || js || wasm_unknown
package syscall