Skip to content

Commit

Permalink
syscall: add wasm_unknown to some additional files so it can compile …
Browse files Browse the repository at this point in the history
…more code

Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram authored and aykevl committed Mar 2, 2024
1 parent 14121f4 commit 1e13c6d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/syscall/file_emulated.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/syscall/file_hosted.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/syscall/syscall_nonhosted.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build baremetal || js
//go:build baremetal || js || wasm_unknown

package syscall

Expand Down
2 changes: 1 addition & 1 deletion src/syscall/tables_nonhosted.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1e13c6d

Please sign in to comment.