aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/distpack/pack.go23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/cmd/distpack/pack.go b/src/cmd/distpack/pack.go
index ffeb4a1611..55e07f88c3 100644
--- a/src/cmd/distpack/pack.go
+++ b/src/cmd/distpack/pack.go
@@ -5,16 +5,15 @@
// Distpack creates the tgz and zip files for a Go distribution.
// It writes into GOROOT/pkg/distpack:
//
-// - a binary distribution (tgz or zip) for the current GOOS and GOARCH
-// - a source distribution that is independent of GOOS/GOARCH
-// - the module mod, info, and zip files for a distribution in module form
-// (as used by GOTOOLCHAIN support in the go command).
+// - a binary distribution (tgz or zip) for the current GOOS and GOARCH
+// - a source distribution that is independent of GOOS/GOARCH
+// - the module mod, info, and zip files for a distribution in module form
+// (as used by GOTOOLCHAIN support in the go command).
//
// Distpack is typically invoked by the -distpack flag to make.bash.
// A cross-compiled distribution for goos/goarch can be built using:
//
// GOOS=goos GOARCH=goarch ./make.bash -distpack
-//
package main
import (
@@ -113,15 +112,21 @@ func main() {
srcArch.Remove(
"bin/**",
"pkg/**",
+
// Generated during cmd/dist. See ../dist/build.go:/deptab.
- "src/cmd/cgo/zdefaultcc.go",
"src/cmd/go/internal/cfg/zdefaultcc.go",
- "src/cmd/go/internal/cfg/zosarch.go",
- "src/cmd/internal/objabi/zbootstrap.go",
"src/go/build/zcgo.go",
- "src/internal/buildcfg/zbootstrap.go",
+ "src/internal/platform/zosarch.go",
"src/runtime/internal/sys/zversion.go",
"src/time/tzdata/zzipdata.go",
+
+ // Generated during cmd/dist by bootstrapBuildTools.
+ "src/cmd/cgo/zdefaultcc.go",
+ "src/cmd/internal/objabi/zbootstrap.go",
+ "src/internal/buildcfg/zbootstrap.go",
+
+ // Generated by earlier versions of cmd/dist .
+ "src/cmd/go/internal/cfg/zosarch.go",
)
srcArch.AddPrefix("go")
testSrc(srcArch)