Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin: add support for dragonfly/amd64 #69617

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cmd/dist/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/internal/platform/supported.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/plugin_dlopen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/plugin/plugin_stubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down