mirror of
https://github.com/golang/go
synced 2024-11-24 15:00:14 -07:00
plugin: add support for dragonfly/amd64
This commit is contained in:
parent
d39b366841
commit
4c0661bb80
2
src/cmd/dist/test.go
vendored
2
src/cmd/dist/test.go
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user