aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2013-03-06 13:16:43 -0800
committerRob Pike <r@golang.org>2013-03-06 13:16:43 -0800
commita25486e4b16b5a97a9dff552359c0bf716114b32 (patch)
tree3fb076ff49aa55f8c851ed40a8e8bc2a77e62f88 /src/make.bash
parent0ed517e5e68813581de8f6a7e94211d82ff36dd2 (diff)
downloadgo-a25486e4b16b5a97a9dff552359c0bf716114b32.tar.xz
make.bash,bat: add -tags gotypes to the build
This installs type checking into go vet. (To be removed before releasing Go 1.1) R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7528044
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/make.bash b/src/make.bash
index 2d83b6f4d1..a06964c3a2 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -134,13 +134,15 @@ echo
if [ "$GOHOSTARCH" != "$GOARCH" -o "$GOHOSTOS" != "$GOOS" ]; then
echo "# Building packages and commands for host, $GOHOSTOS/$GOHOSTARCH."
+ # TODO: Drop the -tags gotypes before releasing Go 1.1. It is to allow type checking in go vet.
GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH \
- "$GOTOOLDIR"/go_bootstrap install -ccflags "$GO_CCFLAGS" -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std
+ "$GOTOOLDIR"/go_bootstrap install -ccflags "$GO_CCFLAGS" -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -tags gotypes -v std
echo
fi
echo "# Building packages and commands for $GOOS/$GOARCH."
-"$GOTOOLDIR"/go_bootstrap install $GO_FLAGS -ccflags "$GO_CCFLAGS" -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std
+# TODO: Drop the -tags gotypes before releasing Go 1.1. It is to allow type checking in go vet.
+"$GOTOOLDIR"/go_bootstrap install $GO_FLAGS -ccflags "$GO_CCFLAGS" -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -tags gotypes -v std
echo
rm -f "$GOTOOLDIR"/go_bootstrap