Skip to content

Commit 3eee686

Browse files
committed
fix: allow nintendoswitch target to compile
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent 4aac3cd commit 3eee686

21 files changed

+41
-20
lines changed

src/os/dir_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build baremetal || js || windows || wasm_unknown
1+
//go:build baremetal || js || windows || wasm_unknown || nintendoswitch
22

33
// Copyright 2009 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

src/os/dir_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build linux && !baremetal && !wasip1 && !wasip2 && !wasm_unknown
5+
//go:build linux && !baremetal && !wasip1 && !wasip2 && !wasm_unknown && !nintendoswitch
66

77
package os
88

src/os/dirent_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !baremetal && !js && !wasip1 && !wasip2 && !wasm_unknown
1+
//go:build !baremetal && !js && !wasip1 && !wasip2 && !wasm_unknown && !nintendoswitch
22

33
// Copyright 2020 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

src/os/exec_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build linux && !baremetal && !tinygo.wasm
5+
//go:build linux && !baremetal && !tinygo.wasm && !nintendoswitch
66

77
package os
88

src/os/exec_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build (!aix && !android && !freebsd && !linux && !netbsd && !openbsd && !plan9 && !solaris) || baremetal || tinygo.wasm
1+
//go:build (!aix && !android && !freebsd && !linux && !netbsd && !openbsd && !plan9 && !solaris) || baremetal || tinygo.wasm || nintendoswitch
22

33
package os
44

src/os/file_anyos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !baremetal && !js && !wasm_unknown
1+
//go:build !baremetal && !js && !wasm_unknown && !nintendoswitch
22

33
// Portions copyright 2009 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

src/os/file_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build baremetal || (tinygo.wasm && !wasip1 && !wasip2)
1+
//go:build baremetal || (tinygo.wasm && !wasip1 && !wasip2) || nintendoswitch
22

33
package os
44

src/os/file_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build darwin || (linux && !baremetal && !wasm_unknown) || wasip1 || wasip2
1+
//go:build darwin || (linux && !baremetal && !wasm_unknown && !nintendoswitch) || wasip1 || wasip2
22

33
// target wasi sets GOOS=linux and thus the +linux build tag,
44
// even though it doesn't show up in "tinygo info target -wasi"

src/os/osexec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build linux && !baremetal && !tinygo.wasm
1+
//go:build linux && !baremetal && !tinygo.wasm && !nintendoswitch
22

33
package os
44

src/os/removeall_noat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build !baremetal && !js && !wasip1 && !wasip2 && !wasm_unknown
5+
//go:build !baremetal && !js && !wasip1 && !wasip2 && !wasm_unknown && !nintendoswitch
66

77
package os
88

0 commit comments

Comments
 (0)