]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
cmd/link: set canUsePlugins only on platforms that support plugin
authorCherry Mui <cherryyz@google.com>
Mon, 15 Dec 2025 20:36:23 +0000 (15:36 -0500)
committerDavid Chase <drchase@google.com>
Mon, 15 Dec 2025 21:08:29 +0000 (13:08 -0800)
commitd14b6427cf8db9607e25f19b7cd1bab615b557b9
tree18ad06bc1ffd2bad715167a60952f82dffb43299
parent9ba0948172cbb05308fb2a9db823a720f8ffb9ad
cmd/link: set canUsePlugins only on platforms that support plugin

If a program imports the plugin package, but the plugin build mode
is not supported on the platform, it still cannot use plugin. Don't
treat it like so.

Updates #76815.

Change-Id: I0fd719427d7c3cc96a94ce1f92d6e4457da92a90
Reviewed-on: https://go-review.googlesource.com/c/go/+/730164
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/link/internal/ld/lib.go