Merge pull request #40664 from carlosedp/riscv64-build

Add riscv64 support to the build scripts
This commit is contained in:
Akihiro Suda 2020-04-04 07:04:28 +09:00 committed by GitHub
commit 846b557cb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
// +build linux,!exclude_disk_quota
// +build linux,!exclude_disk_quota,cgo
//
// projectquota.go - implements XFS project quota controls

View File

@ -1,4 +1,4 @@
// +build linux,exclude_disk_quota
// +build linux,exclude_disk_quota linux,!cgo
package quota // import "github.com/docker/docker/daemon/graphdriver/quota"

View File

@ -70,9 +70,9 @@ hash_files() {
esac
fi
# -buildmode=pie is not supported on Windows and Linux on mips.
# -buildmode=pie is not supported on Windows and Linux on mips and riscv64.
case "$(go env GOOS)/$(go env GOARCH)" in
windows/* | linux/mips*) ;;
windows/* | linux/mips* | linux/riscv*) ;;
*)
BUILDFLAGS+=("-buildmode=pie")