Skip to content

Commit 74e3be8

Browse files
dr2chasebradfitz
authored andcommitted
cmd/dist: ensure android-implies-linux for file names in dist
This is one hurdle to building Go on Android; the runtime does not build properly because *_linux.go files are excluded from the "Building go_bootstrap" step when GOOS=android. There are other hurdles; this is the first one. Change-Id: I766e4bbf6ffc0d273888913f2516cf3e995a1786 Reviewed-on: https://go-review.googlesource.com/38308 Run-TryBot: David Chase <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 59096ed commit 74e3be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/dist/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ func shouldbuild(file, dir string) bool {
791791
name := filepath.Base(file)
792792
excluded := func(list []string, ok string) bool {
793793
for _, x := range list {
794-
if x == ok {
794+
if x == ok || ok == "android" && x == "linux" {
795795
continue
796796
}
797797
i := strings.Index(name, x)

0 commit comments

Comments
 (0)