Skip to content

Commit

Permalink
add netgo (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Oct 31, 2024
1 parent ed5bd6d commit 37cb2cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ builds:
- CXX=o64-clang++
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT_DARWIN }}
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand All @@ -51,7 +51,7 @@ builds:
- CXX=o64-clang++
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT_DARWIN }}
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand Down Expand Up @@ -151,7 +151,7 @@ builds:
- CXX=o64-clang++
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT_DARWIN }}
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand Down Expand Up @@ -232,7 +232,7 @@ builds:
- CXX=oa64-clang++
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT_DARWIN }}
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }} -D__BLST_PORTABLE__
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand All @@ -250,7 +250,7 @@ builds:
- CXX=oa64-clang++
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT_DARWIN }}
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }} -D__BLST_PORTABLE__
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand Down Expand Up @@ -340,7 +340,7 @@ builds:
- CXX=oa64-clang++
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT_DARWIN }}
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }} -D__BLST_PORTABLE__
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand Down Expand Up @@ -418,7 +418,7 @@ builds:
- CXX=x86_64-linux-gnu-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand All @@ -439,7 +439,7 @@ builds:
- CXX=x86_64-linux-gnu-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand Down Expand Up @@ -544,7 +544,7 @@ builds:
- CXX=x86_64-linux-gnu-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }}
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand Down Expand Up @@ -628,7 +628,7 @@ builds:
- CXX=aarch64-linux-gnu-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }} -D__BLST_PORTABLE__
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand All @@ -646,7 +646,7 @@ builds:
- CXX=aarch64-linux-gnu-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }} -D__BLST_PORTABLE__
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand Down Expand Up @@ -736,7 +736,7 @@ builds:
- CXX=aarch64-linux-gnu-g++
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }} -D__BLST_PORTABLE__
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
tags: [ nosqlite, noboltdb, nosilkworm ]
tags: [ nosqlite, noboltdb, nosilkworm, netgo ]
flags:
- -trimpath
- -buildvcs=false
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ifeq ($(shell uname -s), Darwin)
endif

# about netgo see: https://github.com/golang/go/issues/30310#issuecomment-471669125 and https://github.com/golang/go/issues/57757
BUILD_TAGS = nosqlite,noboltdb
BUILD_TAGS = nosqlite,noboltdb,netgo

ifneq ($(shell "$(CURDIR)/turbo/silkworm/silkworm_compat_check.sh"),)
BUILD_TAGS := $(BUILD_TAGS),nosilkworm
Expand Down

0 comments on commit 37cb2cb

Please sign in to comment.