diff --git a/src/os/exec.go b/src/os/exec.go index 9d174bfc16..7d133fda9f 100644 --- a/src/os/exec.go +++ b/src/os/exec.go @@ -1,5 +1,3 @@ -//go:build !baremetal - package os import ( diff --git a/src/os/exec_linux.go b/src/os/exec_linux.go index 1e5eab9d35..20c1c0a24b 100644 --- a/src/os/exec_linux.go +++ b/src/os/exec_linux.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 linux && !baremetal +//go:build linux && !baremetal && !tinygo.wasm package os diff --git a/src/os/exec_linux_test.go b/src/os/exec_linux_test.go index 655eab427e..faa10b65ca 100644 --- a/src/os/exec_linux_test.go +++ b/src/os/exec_linux_test.go @@ -1,3 +1,5 @@ +//go: build linux && !baremetal && !tinygo.wasm + package os_test import ( diff --git a/src/os/exec_other.go b/src/os/exec_other.go index 1684f9109f..c877a7cf9d 100644 --- a/src/os/exec_other.go +++ b/src/os/exec_other.go @@ -1,5 +1,5 @@ -//go:build !aix && !android && !freebsd && !linux && !netbsd && !openbsd && !plan9 && !solaris -// +build !aix,!android,!freebsd,!linux,!netbsd,!openbsd,!plan9,!solaris +//go:build (!aix && !android && !freebsd && !linux && !netbsd && !openbsd && !plan9 && !solaris) || baremetal +// +build !aix,!android,!freebsd,!linux,!netbsd,!openbsd,!plan9,!solaris baremetal package os diff --git a/src/os/osexec.go b/src/os/osexec.go index 1c7b76f936..086703d538 100644 --- a/src/os/osexec.go +++ b/src/os/osexec.go @@ -1,4 +1,4 @@ -//go:build linux && !baremetal +//go:build linux && !baremetal && !darwin && !tinygo.wasm package os