adding a Dockerfile.gccgo to use gccgo compiler instead of go compiler.

temporarily disabling registry builds as crypto package is broken with gccgo.

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
Srini Brahmaroutu
2015-09-16 18:56:01 +00:00
parent 606c6e8f57
commit 2c53643b33
5 changed files with 90 additions and 3 deletions
+5 -1
View File
@@ -23,9 +23,13 @@ if [ "$BUILDFLAGS_FILE" ]; then
readarray -t BUILDFLAGS < "$BUILDFLAGS_FILE"
fi
if [[ "$(go version)" =~ "gccgo" ]]; then
GCCGOFLAGS="-gccgoflags= -lpthread -ldl "
fi
if ! (
cd "$dir"
go test "${testcover[@]}" -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS -c
go test "${testcover[@]}" "$GCCGOFLAGS" -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS -c
); then
exit 1
fi