1
0
mirror of https://github.com/golang/go synced 2024-11-21 11:54:39 -07:00

plugin: add support for dragonfly/amd64

This commit is contained in:
Antonio Huete Jimenez 2024-09-25 00:43:11 +02:00
parent d39b366841
commit 4c0661bb80
No known key found for this signature in database
GPG Key ID: 1D9C521BE59E524C
5 changed files with 6 additions and 6 deletions

View File

@ -1663,7 +1663,7 @@ func buildModeSupported(compiler, buildmode, goos, goarch string) bool {
case "linux/amd64", "linux/arm", "linux/arm64", "linux/386", "linux/loong64", "linux/s390x", "linux/ppc64le",
"android/amd64", "android/386",
"darwin/amd64", "darwin/arm64",
"freebsd/amd64":
"freebsd/amd64", "dragonfly/amd64":
return true
}
return false

View File

@ -211,7 +211,7 @@ func BuildModeSupported(compiler, buildmode, goos, goarch string) bool {
case "linux/amd64", "linux/arm", "linux/arm64", "linux/386", "linux/loong64", "linux/s390x", "linux/ppc64le",
"android/amd64", "android/386",
"darwin/amd64", "darwin/arm64",
"freebsd/amd64":
"freebsd/amd64", "dragonfly/amd64":
return true
}
return false

View File

@ -25,8 +25,8 @@
// However, the plugin mechanism has many significant drawbacks that
// should be considered carefully during the design. For example:
//
// - Plugins are currently supported only on Linux, FreeBSD, and
// macOS, making them unsuitable for applications intended to be
// - Plugins are currently supported only on Linux, FreeBSD, DragonFly BSD
// and macOS, making them unsuitable for applications intended to be
// portable.
//
// - Plugins are poorly supported by the Go race detector. Even simple

View File

@ -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 && cgo) || (darwin && cgo) || (freebsd && cgo)
//go:build (linux && cgo) || (darwin && cgo) || (freebsd && cgo) || (dragonfly && cgo)
package plugin

View File

@ -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 && !freebsd && !darwin) || !cgo
//go:build (!linux && !freebsd && !darwin && !dragonfly) || !cgo
package plugin