diff --git a/compiler/syscall.go b/compiler/syscall.go index db379d522..ddd8daed0 100644 --- a/compiler/syscall.go +++ b/compiler/syscall.go @@ -157,7 +157,7 @@ func (b *builder) createRawSyscall(call *ssa.CallCommon) (llvm.Value, error) { // functions, depending on the target OS/arch. func (b *builder) createSyscall(call *ssa.CallCommon) (llvm.Value, error) { switch b.GOOS { - case "linux", "freebsd": + case "linux": syscallResult, err := b.createRawSyscall(call) if err != nil { return syscallResult, err diff --git a/src/crypto/rand/rand_arc4random.go b/src/crypto/rand/rand_arc4random.go index cbc76af94..9d28e63f4 100644 --- a/src/crypto/rand/rand_arc4random.go +++ b/src/crypto/rand/rand_arc4random.go @@ -1,4 +1,4 @@ -// +build darwin freebsd tinygo.wasm +// +build darwin tinygo.wasm // This implementation of crypto/rand uses the arc4random_buf function // (available on both MacOS and WASI) to generate random numbers. diff --git a/src/os/file_unix.go b/src/os/file_unix.go index b83574d54..7ead108b0 100644 --- a/src/os/file_unix.go +++ b/src/os/file_unix.go @@ -1,4 +1,4 @@ -// +build darwin linux,!baremetal freebsd,!baremetal +// +build darwin linux,!baremetal package os diff --git a/src/runtime/os_freebsd.go b/src/runtime/os_freebsd.go deleted file mode 100644 index 1ba301968..000000000 --- a/src/runtime/os_freebsd.go +++ /dev/null @@ -1,5 +0,0 @@ -// +build freebsd - -package runtime - -const GOOS = "freebsd" diff --git a/src/runtime/runtime_unix.go b/src/runtime/runtime_unix.go index ae9240269..d8a988dd1 100644 --- a/src/runtime/runtime_unix.go +++ b/src/runtime/runtime_unix.go @@ -1,4 +1,4 @@ -// +build darwin linux,!baremetal,!wasi freebsd,!baremetal +// +build darwin linux,!baremetal,!wasi // +build !nintendoswitch package runtime diff --git a/src/runtime/runtime_unix_heap.go b/src/runtime/runtime_unix_heap.go index 9224369ae..d3b97cccb 100644 --- a/src/runtime/runtime_unix_heap.go +++ b/src/runtime/runtime_unix_heap.go @@ -1,4 +1,4 @@ -// +build darwin linux,!baremetal,!wasi freebsd,!baremetal +// +build darwin linux,!baremetal,!wasi // +build !nintendoswitch // +build gc.conservative gc.leaking diff --git a/src/runtime/runtime_unix_noheap.go b/src/runtime/runtime_unix_noheap.go index f9826ac5d..e1f0eb5fe 100644 --- a/src/runtime/runtime_unix_noheap.go +++ b/src/runtime/runtime_unix_noheap.go @@ -1,4 +1,4 @@ -// +build darwin linux,!baremetal,!wasi freebsd,!baremetal +// +build darwin linux,!baremetal,!wasi // +build !nintendoswitch