Skip to content

Commit

Permalink
cmd/dist: ensure android-implies-linux for file names in dist
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dr2chase authored and bradfitz committed May 24, 2017
1 parent 59096ed commit 74e3be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/dist/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ func shouldbuild(file, dir string) bool {
name := filepath.Base(file)
excluded := func(list []string, ok string) bool {
for _, x := range list {
if x == ok {
if x == ok || ok == "android" && x == "linux" {
continue
}
i := strings.Index(name, x)
Expand Down

0 comments on commit 74e3be8

Please sign in to comment.