diff --git a/compiler/syscall.go b/compiler/syscall.go index db379d52..ddd8daed 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 cbc76af9..9d28e63f 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 b83574d5..7ead108b 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 1ba30196..00000000 --- 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 ae924026..d8a988dd 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 9224369a..d3b97ccc 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 f9826ac5..e1f0eb5f 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