build: remove allCrossCompiledArchiveFiles; inline allToolsArchiveFiles

This commit is contained in:
Anton Evangelatov 2019-05-16 22:56:22 +02:00
parent 1ecf0ebb6c
commit ad49e01f25

View file

@ -131,9 +131,6 @@ var (
debEthereum,
}
// Packages to be cross-compiled by the xgo command
allCrossCompiledArchiveFiles = append(allToolsArchiveFiles)
// Distros for which packages are created.
// Note: vivid is unsupported because there is no golang-1.6 package for it.
// Note: wily is unsupported because it was officially deprecated on lanchpad.
@ -996,7 +993,9 @@ func doXgo(cmdline []string) {
if *alltools {
args = append(args, []string{"--dest", GOBIN}...)
for _, res := range allCrossCompiledArchiveFiles {
// Packages to be cross-compiled by the xgo command
for _, res := range allToolsArchiveFiles {
if strings.HasPrefix(res, GOBIN) {
// Binary tool found, cross build it explicitly
args = append(args, "./"+filepath.Join("cmd", filepath.Base(res)))