]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: ignore _test.s files in bootstrap
authorCherry Zhang <cherryyz@google.com>
Tue, 18 Aug 2020 16:01:41 +0000 (12:01 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 19 Aug 2020 14:44:18 +0000 (14:44 +0000)
Ignore all _test.s files in bootstrap, not only the ARM64 one.
They are for testing only.

Fixes #40855.

Change-Id: I00e6b4ab5349e317c9ad3a503997de85aed49373
Reviewed-on: https://go-review.googlesource.com/c/go/+/249018
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/buildtool.go

index 40d28b535b85d3d3a8e5dabc5396f56fa8caa53b..0b50f66c3297706bbef0217c584fd1a8c690e898 100644 (file)
@@ -113,14 +113,15 @@ var ignorePrefixes = []string{
 
 // File suffixes that use build tags introduced since Go 1.4.
 // These must not be copied into the bootstrap build directory.
+// Also igonore test files.
 var ignoreSuffixes = []string{
        "_arm64.s",
-       "_arm64_test.s",
        "_arm64.go",
        "_riscv64.s",
        "_riscv64.go",
        "_wasm.s",
        "_wasm.go",
+       "_test.s",
 }
 
 func bootstrapBuildTools() {