Set CGO_ENABLED=1 on riscv64

CGO works fine on riscv64 thus should be enabled.
Avoid build error https://github.com/golang/go/issues/64875

Signed-off-by: Zhuo Zhi <h.dwwwwww@gmail.com>
This commit is contained in:
Zhuo Zhi 2024-03-11 13:57:35 +08:00
parent d17b3b2d80
commit 800a51d6cd
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ if [ -z "$CGO_ENABLED" ]; then
case "$(go env GOOS)" in case "$(go env GOOS)" in
linux) linux)
case "$(go env GOARCH)" in case "$(go env GOARCH)" in
amd64|arm64|arm|s390x) amd64|arm64|arm|s390x|riscv64)
CGO_ENABLED=1 CGO_ENABLED=1
;; ;;
*) *)