FreeBSD support has been broken for a long time, probably since
https://github.com/tinygo-org/tinygo/pull/1860 (merged in May). Nobody
has complained yet, so I am going to assume nobody uses it.

This doesn't remove support for FreeBSD entirely: the code necessary to
build TinyGo on FreeBSD is still there. It just removes the code
necessary to build binaries targetting FreeBSD. But again, it could very
well be broken as we don't test it.

If anybody wants to re-enable support for FreeBSD, they would be welcome
to do that. But I think it would at the very least need a smoke test of
some sort.
Этот коммит содержится в:
Ayke van Laethem 2021-11-18 21:52:20 +01:00 коммит произвёл Ron Evans
родитель c31aef06ba
коммит 79467baf12
7 изменённых файлов: 6 добавлений и 11 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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.

Просмотреть файл

@ -1,4 +1,4 @@
// +build darwin linux,!baremetal freebsd,!baremetal
// +build darwin linux,!baremetal
package os

Просмотреть файл

@ -1,5 +0,0 @@
// +build freebsd
package runtime
const GOOS = "freebsd"

Просмотреть файл

@ -1,4 +1,4 @@
// +build darwin linux,!baremetal,!wasi freebsd,!baremetal
// +build darwin linux,!baremetal,!wasi
// +build !nintendoswitch
package runtime

Просмотреть файл

@ -1,4 +1,4 @@
// +build darwin linux,!baremetal,!wasi freebsd,!baremetal
// +build darwin linux,!baremetal,!wasi
// +build !nintendoswitch
// +build gc.conservative gc.leaking

Просмотреть файл

@ -1,4 +1,4 @@
// +build darwin linux,!baremetal,!wasi freebsd,!baremetal
// +build darwin linux,!baremetal,!wasi
// +build !nintendoswitch