Skip to content

Commit

Permalink
try gnu clib
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Jan 22, 2025
1 parent 055c1e3 commit 22ebf3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/go/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ tasks:
- |
{{if or (ne OS .TARGET_OS) (ne ARCH .TARGET_ARCH) -}}
GOOS={{.TARGET_OS}} GOARCH={{.TARGET_ARCH}} CGO_ENABLED=1 \
CC='zig cc -target {{if eq .TARGET_ARCH "386"}}x86{{else}}x86_64{{end}}-{{.TARGET_OS}}{{if eq .TARGET_OS "linux"}}-gnu{{end}}'
CC='zig cc -target {{if eq .TARGET_ARCH "386"}}x86{{else}}x86_64{{end}}-{{.TARGET_OS}}-gnu'
{{- end}} \
go env && go build -trimpath -x -v -ldflags="-s -w -X=main.version={{.TUN2SOCKS_VERSION}}" -o '{{.OUTPUT}}' '{{.TASKFILE_DIR}}/outline/electron'
go build -trimpath -x -v -ldflags="-s -w -X=main.version={{.TUN2SOCKS_VERSION}}" -o '{{.OUTPUT}}' '{{.TASKFILE_DIR}}/outline/electron'
- |
{{if or (ne OS .TARGET_OS) (ne ARCH .TARGET_ARCH) -}}
GOOS={{.TARGET_OS}} GOARCH={{.TARGET_ARCH}} CGO_ENABLED=1 \
CC='zig cc -target {{if eq .TARGET_ARCH "386"}}x86{{else}}x86_64{{end}}-{{.TARGET_OS}}{{if eq .TARGET_OS "linux"}}-gnu{{end}}'
CC='zig cc -target {{if eq .TARGET_ARCH "386"}}x86{{else}}x86_64{{end}}-{{.TARGET_OS}}-gnu'
{{- end}} \
go build -trimpath -buildmode=c-shared -ldflags="-s -w -X=main.version={{.TUN2SOCKS_VERSION}}" -o '{{.OUTPUT_LIB}}' '{{.TASKFILE_DIR}}/outline/electron'
Expand Down

0 comments on commit 22ebf3c

Please sign in to comment.