]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: use platform.MustLinkExternal in externalLinkingForced
authorIan Lance Taylor <iant@golang.org>
Fri, 17 Mar 2023 19:40:25 +0000 (12:40 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 17 Mar 2023 19:59:10 +0000 (19:59 +0000)
Change-Id: If5613ae73d03c196f26340fd6293e37c78c29bd1
Reviewed-on: https://go-review.googlesource.com/c/go/+/477395
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/load/pkg.go

index 922dc99e6916a95f6b7988e46a2d92f0e5e05fe7..930471b6677c29ee76a3fc4ad06c506f82f8dbe8 100644 (file)
@@ -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
        }