From 1e13c6d18f3ec73ce3aca01280f92d19763ae322 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Fri, 1 Mar 2024 16:36:55 +0100 Subject: [PATCH] syscall: add wasm_unknown to some additional files so it can compile more code Signed-off-by: deadprogram --- src/syscall/file_emulated.go | 2 +- src/syscall/file_hosted.go | 2 +- src/syscall/syscall_nonhosted.go | 2 +- src/syscall/tables_nonhosted.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/syscall/file_emulated.go b/src/syscall/file_emulated.go index 5ed57f13..8dd3bc14 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 d9198a77..f448f018 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 87d4d9d7..b56d71af 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 d9f2f865..e66620cb 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