Browse Source

syscall: add wasm_unknown to some additional files so it can compile more code

Signed-off-by: deadprogram <ron@hybridgroup.com>
wasm-multi-value
deadprogram 8 months ago
committed by Ayke
parent
commit
1e13c6d18f
  1. 2
      src/syscall/file_emulated.go
  2. 2
      src/syscall/file_hosted.go
  3. 2
      src/syscall/syscall_nonhosted.go
  4. 2
      src/syscall/tables_nonhosted.go

2
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.

2
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.

2
src/syscall/syscall_nonhosted.go

@ -1,4 +1,4 @@
//go:build baremetal || js
//go:build baremetal || js || wasm_unknown
package syscall

2
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

Loading…
Cancel
Save