mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 03:27:48 +00:00
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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//go:build !wasip1 && !wasip2
|
||||
//go:build !js && !wasip1 && !wasip2
|
||||
|
||||
package syscall
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build wasip1
|
||||
//go:build wasip1 || js
|
||||
|
||||
package syscall
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build nintendoswitch || wasip1 || wasip2
|
||||
//go:build js || nintendoswitch || wasip1 || wasip2
|
||||
|
||||
package syscall
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build baremetal || js || wasm_unknown
|
||||
//go:build baremetal || wasm_unknown
|
||||
|
||||
package syscall
|
||||
|
||||
|
||||
@@ -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 || wasm_unknown
|
||||
//go:build baremetal || nintendoswitch || wasm_unknown
|
||||
|
||||
package syscall
|
||||
|
||||
|
||||
Reference in New Issue
Block a user