Skip to content

Commit 33c5db5

Browse files
committed
Set CGO_ENABLED=1 on riscv64
CGO works fine on riscv64 thus should be enabled. Avoid build error golang/go#64875 Signed-off-by: Zhuo Zhi <[email protected]>
1 parent 51cde9f commit 33c5db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/.variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if [ -z "$CGO_ENABLED" ]; then
4848
case "$(go env GOOS)" in
4949
linux)
5050
case "$(go env GOARCH)" in
51-
amd64|arm64|arm|s390x)
51+
amd64|arm64|arm|s390x|riscv64)
5252
CGO_ENABLED=1
5353
;;
5454
*)

0 commit comments

Comments
 (0)