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.
5 // Package buildinternal provides internal functions used by go/build
6 // that need to be used by other packages too.
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"