Skip to content

Commit 4c0661b

Browse files
committed
plugin: add support for dragonfly/amd64
1 parent d39b366 commit 4c0661b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/cmd/dist/test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ func buildModeSupported(compiler, buildmode, goos, goarch string) bool {
16631663
case "linux/amd64", "linux/arm", "linux/arm64", "linux/386", "linux/loong64", "linux/s390x", "linux/ppc64le",
16641664
"android/amd64", "android/386",
16651665
"darwin/amd64", "darwin/arm64",
1666-
"freebsd/amd64":
1666+
"freebsd/amd64", "dragonfly/amd64":
16671667
return true
16681668
}
16691669
return false

src/internal/platform/supported.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func BuildModeSupported(compiler, buildmode, goos, goarch string) bool {
211211
case "linux/amd64", "linux/arm", "linux/arm64", "linux/386", "linux/loong64", "linux/s390x", "linux/ppc64le",
212212
"android/amd64", "android/386",
213213
"darwin/amd64", "darwin/arm64",
214-
"freebsd/amd64":
214+
"freebsd/amd64", "dragonfly/amd64":
215215
return true
216216
}
217217
return false

src/plugin/plugin.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
// However, the plugin mechanism has many significant drawbacks that
2626
// should be considered carefully during the design. For example:
2727
//
28-
// - Plugins are currently supported only on Linux, FreeBSD, and
29-
// macOS, making them unsuitable for applications intended to be
28+
// - Plugins are currently supported only on Linux, FreeBSD, DragonFly BSD
29+
// and macOS, making them unsuitable for applications intended to be
3030
// portable.
3131
//
3232
// - Plugins are poorly supported by the Go race detector. Even simple

src/plugin/plugin_dlopen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build (linux && cgo) || (darwin && cgo) || (freebsd && cgo)
5+
//go:build (linux && cgo) || (darwin && cgo) || (freebsd && cgo) || (dragonfly && cgo)
66

77
package plugin
88

src/plugin/plugin_stubs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build (!linux && !freebsd && !darwin) || !cgo
5+
//go:build (!linux && !freebsd && !darwin && !dragonfly) || !cgo
66

77
package plugin
88

0 commit comments

Comments
 (0)