mirror of
https://github.com/golang/go
synced 2024-11-23 16:20:04 -07:00
cmd/go: use platform.MustLinkExternal in externalLinkingForced
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>
This commit is contained in:
parent
c0aacdcf8a
commit
553506d39a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user