]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/buildall.bash
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / src / buildall.bash
index 19ea172c5b101fd611f7c96d645e26947fb42559..3b8f6ee6f50ca8e86c91be0e32e35e7ba53b3f55 100755 (executable)
@@ -6,8 +6,12 @@
 # Usage: buildall.bash [-e] [pattern]
 #
 # buildall.bash builds the standard library for all Go-supported
-# architectures. It is used by the "misc-compile" trybot builders,
-# as a smoke test to quickly flag portability issues.
+# architectures.
+#
+# Originally the Go build system used it as a smoke test to quickly
+# flag portability issues in builders named "misc-compile" or "all-compile".
+# As of CL 464955, the build system uses make.bash -compile-only instead,
+# so this script no longer runs in any automated fashion.
 #
 # Options:
 #   -e: stop at first failure
@@ -36,13 +40,13 @@ fi
 GOROOT="$(cd .. && pwd)"
 
 gettargets() {
-       ../bin/go tool dist list | sed -e 's|/|-|'
-       echo linux-386-387
+       ../bin/go tool dist list | sed -e 's|/|-|' |
+               egrep -v '^(android|ios)' # need C toolchain even for cross-compiling
        echo linux-arm-arm5
 }
 
 selectedtargets() {
-       gettargets | egrep "$pattern"
+       gettargets | grep -E "$pattern"
 }
 
 # put linux first in the target list to get all the architectures up front.
@@ -64,15 +68,11 @@ do
        echo "### Building $target"
        export GOOS=$(echo $target | sed 's/-.*//')
        export GOARCH=$(echo $target | sed 's/.*-//')
-       unset GO386 GOARM
+       unset GOARM
        if [ "$GOARCH" = "arm5" ]; then
                export GOARCH=arm
                export GOARM=5
        fi
-       if [ "$GOARCH" = "387" ]; then
-               export GOARCH=386
-               export GO386=387
-       fi
 
        # Build and vet everything.
        # cmd/go/internal/work/exec.go enables the same vet flags during go test of std cmd