Skip to content

Commit

Permalink
Set CGO_ENABLED=1 on riscv64
Browse files Browse the repository at this point in the history
CGO works fine on riscv64 thus should be enabled.
Avoid build error golang/go#64875

Signed-off-by: Zhuo Zhi <h.dwwwwww@gmail.com>
  • Loading branch information
Xeonacid committed Mar 12, 2024
1 parent d17b3b2 commit 800a51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/.variables
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if [ -z "$CGO_ENABLED" ]; then
case "$(go env GOOS)" in
linux)
case "$(go env GOARCH)" in
amd64|arm64|arm|s390x)
amd64|arm64|arm|s390x|riscv64)
CGO_ENABLED=1
;;
*)
Expand Down

0 comments on commit 800a51d

Please sign in to comment.