From 6d4ab57a0e49f6a1a705e351ddb0d46134f91498 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Fri, 15 Dec 2023 18:22:16 +0800 Subject: [PATCH] build: enable cgo for `win/arm64` [skip ci] --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 7071337d..4ea19ecc 100644 --- a/build.sh +++ b/build.sh @@ -49,6 +49,7 @@ BuildWinArm64() { export GOARCH=arm64 export CC=$(pwd)/wrapper/zcc-arm64 export CXX=$(pwd)/wrapper/zcxx-arm64 + export CGO_ENABLED=1 go build -o "$1" -ldflags="$ldflags" -tags=jsoniter . }