]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: make textflag.h available in runtime, avoid android/linux conflicts
authorRuss Cox <rsc@golang.org>
Fri, 5 Sep 2014 01:22:18 +0000 (21:22 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 5 Sep 2014 01:22:18 +0000 (21:22 -0400)
commit73a6d36d872b00fe873f70fe6c36333ea5c7b65f
treec63be5e658547b340b7a8ecc50c3a64bf8487d09
parent99a08262af725e542327f09d4a1cedf2a8caefe2
cmd/dist: make textflag.h available in runtime, avoid android/linux conflicts

1) cmd/dist was copying textflag.h to the build include directory,
but only after compiling package runtime. So other packages could
use it, just not runtime. Copy earlier, so that runtime can use it too.

2) We decided for android that anything marked linux is also included
in the build. The generated linux-specific files in cmd/dist must therefore
have explicit +build !android tags, or else you can't have simultaneous
linux/arm and android/arm builds in a single client. The tag was already
there for at least one file, but it was missing from many others.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/134500043
src/cmd/dist/build.c
src/cmd/dist/buildruntime.c
src/cmd/dist/goc2c.c