Skip to content

Commit

Permalink
chore: do not use zig cc on darwin cross compilation
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Sep 16, 2024
1 parent 66c7011 commit af77f22
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# - ./scripts/install-kcl-lsp-all.sh

# .goreleaser.yml
builds:
- id: goreleaser-zig-cross-compilation-macos
main: ./cmd/kcl/main.go
Expand All @@ -20,11 +18,6 @@ builds:
- "-X kcl-lang.io/cli/pkg/version.version={{.Version}}"
env:
- CGO_ENABLED=1
- >-
{{- if eq .Os "darwin" }}
{{- if eq .Arch "amd64"}}CC=zig c++ -target x86_64-macos-none -F{{ .Env.SDK_PATH }}/System/Library/Frameworks{{- end }}
{{- if eq .Arch "arm64"}}CC=zig c++ -target aarch64-macos-none -F{{ .Env.SDK_PATH }}/System/Library/Frameworks{{- end }}
{{- end }}

- id: goreleaser-zig-cross-compilation-linux
main: ./cmd/kcl/main.go
Expand Down

0 comments on commit af77f22

Please sign in to comment.