From 553506d39a44a4f56f4f801b15e82fea7f542403 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 17 Mar 2023 12:40:25 -0700 Subject: [PATCH] cmd/go: use platform.MustLinkExternal in externalLinkingForced Change-Id: If5613ae73d03c196f26340fd6293e37c78c29bd1 Reviewed-on: https://go-review.googlesource.com/c/go/+/477395 TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Bryan Mills --- src/cmd/go/internal/load/pkg.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go index 922dc99e691..930471b6677 100644 --- a/src/cmd/go/internal/load/pkg.go +++ b/src/cmd/go/internal/load/pkg.go @@ -2627,12 +2627,7 @@ func externalLinkingForced(p *Package) bool { } // Some targets must use external linking even inside GOROOT. - switch cfg.BuildContext.GOOS { - case "android": - if cfg.BuildContext.GOARCH != "arm64" { - return true - } - case "ios": + if platform.MustLinkExternal(cfg.BuildContext.GOOS, cfg.BuildContext.GOARCH, false) { return true }