25 lines
770 B
Diff
25 lines
770 B
Diff
From 846b34f112fd9684a95238dd3a6352e0f3f58a48 Mon Sep 17 00:00:00 2001
|
|
From: Wenlong Zhang <zhangwenlong@loongson.cn>
|
|
Date: Wed, 16 Apr 2025 11:41:32 +0800
|
|
Subject: [PATCH] Set CGO_ENABLED=1 on loong64
|
|
|
|
---
|
|
scripts/build/.variables | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/scripts/build/.variables b/scripts/build/.variables
|
|
index de7945d..a9af6cb 100755
|
|
--- a/scripts/build/.variables
|
|
+++ b/scripts/build/.variables
|
|
@@ -48,7 +48,7 @@ if [ -z "$CGO_ENABLED" ]; then
|
|
case "$(go env GOOS)" in
|
|
linux)
|
|
case "$(go env GOARCH)" in
|
|
- amd64|arm64|arm|s390x|riscv64)
|
|
+ amd64|arm64|arm|s390x|riscv64|loong64)
|
|
CGO_ENABLED=1
|
|
;;
|
|
*)
|
|
--
|
|
2.43.0
|