]> Cypherpunks.ru repositories - gostls13.git/blob - src/internal/buildinternal/needs_install.go
cmd/go: don't install most GOROOT .a files in pkg
[gostls13.git] / src / internal / buildinternal / needs_install.go
1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Package buildinternal provides internal functions used by go/build
6 // that need to be used by other packages too.
7 package buildinternal
8
9 // NeedsInstalledDotA returns true if the given stdlib package
10 // needs an installed .a file in the stdlib.
11 func NeedsInstalledDotA(importPath string) bool {
12         return importPath == "net" || importPath == "os/signal" || importPath == "os/user" || importPath == "plugin" ||
13                 importPath == "runtime/cgo"
14 }