Skip to content

Commit

Permalink
use non CGO build
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 20, 2024
1 parent da4a74a commit f0be5c7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 24 deletions.
2 changes: 1 addition & 1 deletion build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ GCFLAGS=""
# AMD64
OSES=(linux freebsd)
for os in ${OSES[@]}; do
env GOOS=$os GOARCH=amd64 go build -mod=vendor -ldflags "$LDFLAGS" -gcflags "$GCFLAGS" -o grasshopper_${os}_amd64${suffix} github.com/xtaci/grasshopper/cmd/grasshopper
env CGO_ENABLED=0 GOOS=$os GOARCH=amd64 go build -mod=vendor -ldflags "$LDFLAGS" -gcflags "$GCFLAGS" -o grasshopper_${os}_amd64${suffix} github.com/xtaci/grasshopper/cmd/grasshopper
if $UPX; then upx -9 grasshopper_${os}_amd64${suffix};fi
tar -cf grasshopper-${os}-amd64-$VERSION.tar grasshopper_${os}_amd64${suffix}
${COMPRESS} -f grasshopper-${os}-amd64-$VERSION.tar
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/spf13/viper v1.19.0
github.com/templexxx/xorsimd v0.4.3
github.com/tjfoc/gmsm v1.4.1
github.com/xtaci/gaio v1.2.22
github.com/xtaci/gaio v1.2.24
github.com/xtaci/qpp v1.1.17
golang.org/x/crypto v0.31.0
)
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho=
github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE=
github.com/xtaci/gaio v1.2.22 h1:OPbcRlQ9dhXVHD3VCB+taK4BWShM5Cjhr6L/qg8+j5k=
github.com/xtaci/gaio v1.2.22/go.mod h1:rJMerwiLCLnKa14YTM/sRggTPrnBZrlCg9U3DnV5VBE=
github.com/xtaci/gaio v1.2.24 h1:YESSPj6cFsf2WCpsRIngLY9w42WfIz61KZyYs6N3Ojg=
github.com/xtaci/gaio v1.2.24/go.mod h1:3jAZo6WyD8rtO6bj/h3atSsGjQbm5a4zbAhJ3JotVbU=
github.com/xtaci/qpp v1.1.17 h1:w35NYqF3wOBoAMs+2qA2XFjkNQ12mugw51CUJ7OcTzo=
github.com/xtaci/qpp v1.1.17/go.mod h1:dJS3usaXNMbWxZSWCAdxz01UgJcz9wXDkd4BccDY/V0=
go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
Expand Down
27 changes: 6 additions & 21 deletions vendor/github.com/xtaci/gaio/affinity_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ github.com/templexxx/xorsimd
# github.com/tjfoc/gmsm v1.4.1
## explicit; go 1.14
github.com/tjfoc/gmsm/sm4
# github.com/xtaci/gaio v1.2.22
# github.com/xtaci/gaio v1.2.24
## explicit; go 1.13
github.com/xtaci/gaio
# github.com/xtaci/qpp v1.1.17
Expand Down

0 comments on commit f0be5c7

Please sign in to comment.