mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-07 06:22:03 +00:00
Merge pull request #15861 from brahmaroutu/gccgo_x86
Enable building Docker with gcc-go on x86
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user