build.go (go1.19.src) | : | build.go (go1.19.1.src) | ||
---|---|---|---|---|
skipping to change at line 941 | skipping to change at line 941 | |||
bgwait(&wg) | bgwait(&wg) | |||
} | } | |||
// packagefile returns the path to a compiled .a file for the given package | // packagefile returns the path to a compiled .a file for the given package | |||
// path. Paths may need to be resolved with resolveVendor first. | // path. Paths may need to be resolved with resolveVendor first. | |||
func packagefile(pkg string) string { | func packagefile(pkg string) string { | |||
return pathf("%s/pkg/%s_%s/%s.a", goroot, goos, goarch, pkg) | return pathf("%s/pkg/%s_%s/%s.a", goroot, goos, goarch, pkg) | |||
} | } | |||
// unixOS is the set of GOOS values matched by the "unix" build tag. | // unixOS is the set of GOOS values matched by the "unix" build tag. | |||
// This is the same list as in go/build/syslist.go. | // This is the same list as in go/build/syslist.go and | |||
// cmd/go/internal/imports/build.go. | ||||
var unixOS = map[string]bool{ | var unixOS = map[string]bool{ | |||
"aix": true, | "aix": true, | |||
"android": true, | "android": true, | |||
"darwin": true, | "darwin": true, | |||
"dragonfly": true, | "dragonfly": true, | |||
"freebsd": true, | "freebsd": true, | |||
"hurd": true, | "hurd": true, | |||
"illumos": true, | "illumos": true, | |||
"ios": true, | "ios": true, | |||
"linux": true, | "linux": true, | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |